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

Ivan Kalvachev CVS iive at mplayerhq.hu
Tue Mar 25 21:24:15 CET 2003


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

Modified Files:
	vo_svga.c 
Log Message:
Fix last mode ignored bug

Index: vo_svga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_svga.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- vo_svga.c	23 Mar 2003 00:44:09 -0000	1.66
+++ vo_svga.c	25 Mar 2003 20:23:50 -0000	1.67
@@ -363,9 +363,11 @@
   prev_badness = 0;//take care of special case below
   bestmode = 0; //0 is the TEXT mode
   lastmode = vga_lastmodenumber();
-  for(i=1;i<lastmode;i++){
+  for(i=1;i<=lastmode;i++){
     vminfo = vga_getmodeinfo(i);
     if( vminfo == NULL ) continue;
+    if(verbose>3)
+      printf("vo_svga: testing mode %d (%s) %d\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;
@@ -638,7 +640,7 @@
   if( vo_dbpp>0 && vo_dbpp!=req_bpp ) return 0; //support -bpp options
 //scan all modes
   lastmode = vga_lastmodenumber();
-  for(i=1;i<lastmode;i++){
+  for(i=1;i<=lastmode;i++){
     vminfo = vga_getmodeinfo(i);
     if( vminfo == NULL ) continue;
     if( vga_hasmode(i) == 0 ) continue;



More information about the MPlayer-cvslog mailing list