changeset 9788:2390fddbe581

force_mode wrong has_mode check, verbose retrace message
author iive
date Wed, 02 Apr 2003 04:31:40 +0000
parents c3b63fb0e8db
children 45173e0d34cc
files libvo/vo_svga.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_svga.c	Wed Apr 02 01:46:47 2003 +0000
+++ b/libvo/vo_svga.c	Wed Apr 02 04:31:40 2003 +0000
@@ -367,7 +367,7 @@
     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 @@
     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 @@
   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;