changeset 290:f40a55208b76

Mode detect bugfix.
author se7encode
date Thu, 05 Apr 2001 20:42:24 +0000
parents dbe4a779b891
children da98e96499bb
files libvo/vo_svga.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_svga.c	Thu Apr 05 20:03:26 2001 +0000
+++ b/libvo/vo_svga.c	Thu Apr 05 20:42:24 2001 +0000
@@ -52,6 +52,7 @@
 #define VID_MODE_NUM	 12
 
 static uint8_t vid_modes[VID_MODE_NUM];
+static vid_mode_nums[VID_MODE_NUM] = {17,18,19,34,20,21,22,35,23,24,25,36};
 static uint8_t vid_mode;
 
 static uint32_t pformat;
@@ -65,7 +66,7 @@
   vga_init();
   vga_disabledriverreport();
   for (i = 0; i < VID_MODE_NUM; i++) {
-    if (vga_hasmode(i) > 0)
+    if (vga_hasmode(vid_mode_nums[i]) > 0)
       vid_modes[i] = 1;
     else vid_modes[i] = 0;
   }