1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 06:42:03 +00:00

force_mode wrong has_mode check, verbose retrace message

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9789 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
iive 2003-04-02 04:31:40 +00:00
parent bbb4b7b18f
commit c980c302fb

View File

@ -367,7 +367,7 @@ int find_best_svga_mode(int req_w,int req_h, int req_bpp){
vminfo = vga_getmodeinfo(i);
if( vminfo == NULL ) continue;
if(verbose>3)
printf("vo_svga: testing mode %d (%s) %d\n",i,vga_getmodename(i));
printf("vo_svga: testing mode %d (%s)\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;
@ -431,7 +431,7 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width,
modeinfo=vga_getmodeinfo(vid_mode);
}else{//force_vm
vid_mode=force_vm;
if(vga_hasmode(vid_mode) != 0){
if(vga_hasmode(vid_mode) == 0){
printf("vo_svga: forced vid_mode %d (%s) not available\n",
vid_mode,vga_getmodename(vid_mode));
return 1; //error;
@ -598,8 +598,8 @@ int page;
if(verbose > 2)
printf("vo_svga: viewing page %d\n",page);
if(sync_flip && oldpage!=page){
if(verbose > 2) printf("vo_svga:vga_waitretrace\n");
vga_waitretrace();
printf("vo_svga:vga_waitretraced\n");
}
vga_setdisplaystart(PageStore[cpage].doffset);
oldpage=page;