mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00
- Fixed the comparing of video modes in IntInitScreenInfo.
svn path=/trunk/; revision=10060
This commit is contained in:
parent
4f24993634
commit
95e1a9b247
1 changed files with 2 additions and 5 deletions
|
@ -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) &&
|
||||
|
|
Loading…
Reference in a new issue