add a commet why 24bits cards fails and maby other card will fails in GetAvailableModes Modified: trunk/reactos/drivers/video/displays/framebuf/screen.c _____
Modified: trunk/reactos/drivers/video/displays/framebuf/screen.c --- trunk/reactos/drivers/video/displays/framebuf/screen.c 2005-05-26 14:46:23 UTC (rev 15521) +++ trunk/reactos/drivers/video/displays/framebuf/screen.c 2005-05-26 15:15:55 UTC (rev 15522) @@ -90,6 +90,13 @@
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) || !(ModeInfoPtr->AttributeFlags & VIDEO_MODE_GRAPHICS) || ((ModeInfoPtr->BitsPerPlane != 8) && @@ -101,6 +108,7 @@ ModeInfoPtr->Length = 0; }
+ ModeInfoPtr = (PVIDEO_MODE_INFORMATION) (((PUCHAR)ModeInfoPtr) + Modes.ModeInformationLength); }