mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:25:39 +00:00
- Advancing pointer inside loop makes more sense than checking the same structure ModeCount times.
svn path=/trunk/; revision=8323
This commit is contained in:
parent
cc1c862dae
commit
576e14972b
1 changed files with 3 additions and 1 deletions
|
@ -90,7 +90,7 @@ GetAvailableModes(
|
||||||
|
|
||||||
while (ulTemp--)
|
while (ulTemp--)
|
||||||
{
|
{
|
||||||
if ((ModeInfoPtr->NumberOfPlanes != 1 ) ||
|
if ((ModeInfoPtr->NumberOfPlanes != 1) ||
|
||||||
!(ModeInfoPtr->AttributeFlags & VIDEO_MODE_GRAPHICS) ||
|
!(ModeInfoPtr->AttributeFlags & VIDEO_MODE_GRAPHICS) ||
|
||||||
((ModeInfoPtr->BitsPerPlane != 8) &&
|
((ModeInfoPtr->BitsPerPlane != 8) &&
|
||||||
(ModeInfoPtr->BitsPerPlane != 16) &&
|
(ModeInfoPtr->BitsPerPlane != 16) &&
|
||||||
|
@ -145,6 +145,8 @@ IntInitScreenInfo(
|
||||||
{
|
{
|
||||||
if (ModeInfoPtr->Length == 0)
|
if (ModeInfoPtr->Length == 0)
|
||||||
{
|
{
|
||||||
|
ModeInfoPtr = (PVIDEO_MODE_INFORMATION)
|
||||||
|
(((PUCHAR)ModeInfoPtr) + ModeInfoSize);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
SelectedMode = ModeInfoPtr;
|
SelectedMode = ModeInfoPtr;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue