mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 07:43:12 +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 */
|
VideoMode->YMillimeter = 0; /* FIXME */
|
||||||
if (VBEMode->BitsPerPixel > 8)
|
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)
|
if (DeviceExtension->VbeInfo.Version < 0x300)
|
||||||
{
|
{
|
||||||
VideoMode->NumberRedBits = VBEMode->RedMaskSize;
|
VideoMode->NumberRedBits = VBEMode->RedMaskSize;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue