From c980c302fb9f2f81919eb92ac58199354653ae31 Mon Sep 17 00:00:00 2001 From: iive Date: Wed, 2 Apr 2003 04:31:40 +0000 Subject: [PATCH] force_mode wrong has_mode check, verbose retrace message git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9789 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_svga.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libvo/vo_svga.c b/libvo/vo_svga.c index 2610796251..48e70a2dcf 100644 --- a/libvo/vo_svga.c +++ b/libvo/vo_svga.c @@ -367,7 +367,7 @@ int find_best_svga_mode(int req_w,int req_h, int req_bpp){ vminfo = vga_getmodeinfo(i); if( vminfo == NULL ) continue; if(verbose>3) - printf("vo_svga: testing mode %d (%s) %d\n",i,vga_getmodename(i)); + printf("vo_svga: testing mode %d (%s)\n",i,vga_getmodename(i)); if( vga_hasmode(i) == 0 ) continue; if( req_bpp != bpp_from_vminfo(vminfo) )continue; if( (vminfo->width < req_w) || (vminfo->height < req_h) ) continue; @@ -431,7 +431,7 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, modeinfo=vga_getmodeinfo(vid_mode); }else{//force_vm vid_mode=force_vm; - if(vga_hasmode(vid_mode) != 0){ + if(vga_hasmode(vid_mode) == 0){ printf("vo_svga: forced vid_mode %d (%s) not available\n", vid_mode,vga_getmodename(vid_mode)); return 1; //error; @@ -598,8 +598,8 @@ int page; if(verbose > 2) printf("vo_svga: viewing page %d\n",page); if(sync_flip && oldpage!=page){ + if(verbose > 2) printf("vo_svga:vga_waitretrace\n"); vga_waitretrace(); - printf("vo_svga:vga_waitretraced\n"); } vga_setdisplaystart(PageStore[cpage].doffset); oldpage=page;