mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 01:05:42 +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;
|
ModeInfoPtr = ModeInfo;
|
||||||
while (ModeCount-- > 0)
|
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->dmPelsHeight == ModeInfoPtr->VisScreenHeight &&
|
||||||
pDevMode->dmBitsPerPel == (ModeInfoPtr->BitsPerPlane *
|
pDevMode->dmBitsPerPel == (ModeInfoPtr->BitsPerPlane *
|
||||||
ModeInfoPtr->NumberOfPlanes) &&
|
ModeInfoPtr->NumberOfPlanes) &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue