mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
add a commet why 24bits cards fails
and maby other card will fails in GetAvailableModes svn path=/trunk/; revision=15522
This commit is contained in:
parent
c7ae12e813
commit
38b2ccb8dd
1 changed files with 8 additions and 0 deletions
|
@ -90,6 +90,13 @@ GetAvailableModes(
|
||||||
|
|
||||||
while (ulTemp--)
|
while (ulTemp--)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
FIXME
|
||||||
|
Do only remove no supporet mode not reste the ModeInfoPtr->Length=0
|
||||||
|
if the mode should be betwin 8 - 32 it will not found the rest
|
||||||
|
of the mode that comes after it. That why 24bits graphic card
|
||||||
|
fails. and that reason We add 15bpp check here
|
||||||
|
*/
|
||||||
if ((ModeInfoPtr->NumberOfPlanes != 1) ||
|
if ((ModeInfoPtr->NumberOfPlanes != 1) ||
|
||||||
!(ModeInfoPtr->AttributeFlags & VIDEO_MODE_GRAPHICS) ||
|
!(ModeInfoPtr->AttributeFlags & VIDEO_MODE_GRAPHICS) ||
|
||||||
((ModeInfoPtr->BitsPerPlane != 8) &&
|
((ModeInfoPtr->BitsPerPlane != 8) &&
|
||||||
|
@ -101,6 +108,7 @@ GetAvailableModes(
|
||||||
ModeInfoPtr->Length = 0;
|
ModeInfoPtr->Length = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ModeInfoPtr = (PVIDEO_MODE_INFORMATION)
|
ModeInfoPtr = (PVIDEO_MODE_INFORMATION)
|
||||||
(((PUCHAR)ModeInfoPtr) + Modes.ModeInformationLength);
|
(((PUCHAR)ModeInfoPtr) + Modes.ModeInformationLength);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue