Detect Bad graphic Bios, Some graphice card report VBE 2.0 when the are VBE 1.2....
authorMagnus Olsen <magnus@greatlord.com>
Wed, 23 Nov 2005 19:35:44 +0000 (19:35 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Wed, 23 Nov 2005 19:35:44 +0000 (19:35 +0000)
svn path=/trunk/; revision=19496

reactos/drivers/video/miniport/vbe/vbemp.c

index b2a85a7..40fdf80 100644 (file)
@@ -241,6 +241,13 @@ VBEInitialize(PVOID HwDeviceExtension)
          &VBEDeviceExtension->VbeInfo,
          sizeof(VBEDeviceExtension->VbeInfo));
 
+         /* Dectect Bad VBE BIOS some Graphice card report 0x200 when they are VBE 1.2 */
+         if (VBEDeviceExtension->VbeInfo.OemVendorNamePtr == 0 && VBEDeviceExtension->VbeInfo.Version == 0x200)
+         {
+         VBEDeviceExtension->VbeInfo.Version = 0x102;
+         }
+         
+      
       DPRINT("VBE BIOS Present (%d.%d, %8ld Kb)\n",
          VBEDeviceExtension->VbeInfo.Version / 0x100,
          VBEDeviceExtension->VbeInfo.Version & 0xFF,