mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
Report 16bpp for modes where VBE returns 15bpp.
svn path=/trunk/; revision=15528
This commit is contained in:
parent
db46d099bc
commit
2d7d796368
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue