From 2d7d796368c6b3a0f8a9146b62d0624a8e98f39f Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Thu, 26 May 2005 19:58:58 +0000 Subject: [PATCH] Report 16bpp for modes where VBE returns 15bpp. svn path=/trunk/; revision=15528 --- reactos/drivers/video/miniport/vbe/vbemp.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/reactos/drivers/video/miniport/vbe/vbemp.c b/reactos/drivers/video/miniport/vbe/vbemp.c index 9c52de7d91f..6e9bae4972d 100644 --- a/reactos/drivers/video/miniport/vbe/vbemp.c +++ b/reactos/drivers/video/miniport/vbe/vbemp.c @@ -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;