Mercurial > mplayer.hg
changeset 9686:a7aeb72f6fc9
Fix last mode ignored bug
author | iive |
---|---|
date | Tue, 25 Mar 2003 20:23:50 +0000 |
parents | 4b85493952b4 |
children | 2e1bd9192ce2 |
files | libvo/vo_svga.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;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;