# HG changeset patch # User iive # Date 1048623830 0 # Node ID a7aeb72f6fc93ce7a53744a659d5c8450bd5b6c7 # Parent 4b85493952b494997924257fed190221d05c08d9 Fix last mode ignored bug diff -r 4b85493952b4 -r a7aeb72f6fc9 libvo/vo_svga.c --- a/libvo/vo_svga.c Tue Mar 25 14:17:55 2003 +0000 +++ b/libvo/vo_svga.c Tue Mar 25 20:23:50 2003 +0000 @@ -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;i3) + 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