[Mplayer-cvslog] CVS: main/libvo vo_svga.c,1.67,1.68

Ivan Kalvachev CVS iive at mplayerhq.hu
Wed Apr 2 06:32:14 CEST 2003


Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv7336

Modified Files:
	vo_svga.c 
Log Message:
force_mode wrong has_mode check, verbose retrace message

Index: vo_svga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_svga.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -r1.67 -r1.68
--- vo_svga.c	25 Mar 2003 20:23:50 -0000	1.67
+++ vo_svga.c	2 Apr 2003 04:31:40 -0000	1.68
@@ -367,7 +367,7 @@
     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 @@
     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 @@
   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;



More information about the MPlayer-cvslog mailing list