- Fixed the comparing of video modes in IntInitScreenInfo.

svn path=/trunk/; revision=10060
This commit is contained in:
Hartmut Birr 2004-07-10 13:05:08 +00:00
parent 4f24993634
commit 95e1a9b247

View file

@ -158,12 +158,9 @@ IntInitScreenInfo(
ModeInfoPtr = ModeInfo;
while (ModeCount-- > 0)
{
if (ModeInfoPtr->Length == 0)
{
continue;
}
if (pDevMode->dmPelsWidth == ModeInfoPtr->VisScreenWidth &&
if (ModeInfoPtr->Length > 0 &&
pDevMode->dmPelsWidth == ModeInfoPtr->VisScreenWidth &&
pDevMode->dmPelsHeight == ModeInfoPtr->VisScreenHeight &&
pDevMode->dmBitsPerPel == (ModeInfoPtr->BitsPerPlane *
ModeInfoPtr->NumberOfPlanes) &&