changeset 7675:f78dc7d40730

mode check at preinit()
author arpi
date Wed, 09 Oct 2002 00:51:04 +0000
parents 7078f0139bed
children 711b3d844c47
files libvo/vo_svga.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_svga.c	Wed Oct 09 00:39:04 2002 +0000
+++ b/libvo/vo_svga.c	Wed Oct 09 00:51:04 2002 +0000
@@ -93,7 +93,12 @@
       maxframes=1;
   }
 
-printf("vo_svga: preinit - maxframes=%i\n",maxframes);
+  if (!checked) {
+    if (checksupportedmodes()) // Looking for available video modes 
+      return(1);
+  }
+
+// printf("vo_svga: preinit - maxframes=%i\n",maxframes);
   
   return 0;
 }
@@ -119,11 +124,6 @@
   uint16_t buf_w = USHRT_MAX, buf_h = USHRT_MAX;
   vga_modelist_t *list = modelist;
 
-  if (!checked) {
-    if (checksupportedmodes()) // Looking for available video modes 
-      return(1);
-  }
-
   bpp_avail = 0;
   while (list != NULL) {
     if ((list->modeinfo.width >= req_w) && (list->modeinfo.height >= req_h)) {