Report 16bpp for modes where VBE returns 15bpp.

svn path=/trunk/; revision=15528
This commit is contained in:
Filip Navara 2005-05-26 19:58:58 +00:00
parent db46d099bc
commit 2d7d796368

View 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;