From 21c03a2bd4ac76aede005df69c1de9cdf26a2cb9 Mon Sep 17 00:00:00 2001 From: iive Date: Tue, 25 Mar 2003 20:23:50 +0000 Subject: Fix last mode ignored bug git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9687 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_svga.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libvo') diff --git a/libvo/vo_svga.c b/libvo/vo_svga.c index 24e51d48a7..2610796251 100644 --- a/libvo/vo_svga.c +++ b/libvo/vo_svga.c @@ -363,9 +363,11 @@ int find_best_svga_mode(int req_w,int req_h, int req_bpp){ 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 @@ vga_modeinfo * vminfo; if( vo_dbpp>0 && vo_dbpp!=req_bpp ) return 0; //support -bpp options //scan all modes lastmode = vga_lastmodenumber(); - for(i=1;i