Report 16bpp for modes where VBE returns 15bpp.
authorFilip Navara <filip.navara@gmail.com>
Thu, 26 May 2005 19:58:58 +0000 (19:58 +0000)
committerFilip Navara <filip.navara@gmail.com>
Thu, 26 May 2005 19:58:58 +0000 (19:58 +0000)
svn path=/trunk/; revision=15528

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

index 9c52de7..6e9bae4 100644 (file)
@@ -885,6 +885,14 @@ VBEQueryMode(
    VideoMode->YMillimeter = 0; /* FIXME */
    if (VBEMode->BitsPerPixel > 8)
    {
+      /*
+       * Always report 16bpp modes and not 15bpp mode...
+       */
+      if (VBEMode->BitsPerPixel == 15 && VBEMode->NumberOfPlanes == 1)
+      {
+         VideoMode->BitsPerPlane = 16;
+      }
+
       if (DeviceExtension->VbeInfo.Version < 0x300)
       {
          VideoMode->NumberRedBits = VBEMode->RedMaskSize;