diff options
author | iive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-03-25 20:23:50 +0000 |
---|---|---|
committer | iive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-03-25 20:23:50 +0000 |
commit | 21c03a2bd4ac76aede005df69c1de9cdf26a2cb9 (patch) | |
tree | 721572e0bcc6d9c3a68d59d29e3ab3e4aa5b877c /libvo | |
parent | 11da49750ec8868cde61ba4f3c4436f2f2ef1c1b (diff) |
Fix last mode ignored bug
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9687 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_svga.c | 6 |
1 files changed, 4 insertions, 2 deletions
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;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 @@ 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<lastmode;i++){ + for(i=1;i<=lastmode;i++){ vminfo = vga_getmodeinfo(i); if( vminfo == NULL ) continue; if( vga_hasmode(i) == 0 ) continue; |