reactos/drivers/video/displays/framebuf
diff -u -r1.3 -r1.4
--- screen.c 29 Jun 2004 18:12:30 -0000 1.3
+++ screen.c 10 Jul 2004 13:05:08 -0000 1.4
@@ -158,12 +158,9 @@
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) &&