- Advancing pointer inside loop makes more sense than checking the same structure ModeCount times.

svn path=/trunk/; revision=8323
This commit is contained in:
Filip Navara 2004-02-22 22:19:48 +00:00
parent cc1c862dae
commit 576e14972b

View file

@ -90,7 +90,7 @@ GetAvailableModes(
while (ulTemp--)
{
if ((ModeInfoPtr->NumberOfPlanes != 1 ) ||
if ((ModeInfoPtr->NumberOfPlanes != 1) ||
!(ModeInfoPtr->AttributeFlags & VIDEO_MODE_GRAPHICS) ||
((ModeInfoPtr->BitsPerPlane != 8) &&
(ModeInfoPtr->BitsPerPlane != 16) &&
@ -145,6 +145,8 @@ IntInitScreenInfo(
{
if (ModeInfoPtr->Length == 0)
{
ModeInfoPtr = (PVIDEO_MODE_INFORMATION)
(((PUCHAR)ModeInfoPtr) + ModeInfoSize);
continue;
}
SelectedMode = ModeInfoPtr;