mirror of
https://github.com/reactos/reactos.git
synced 2024-08-11 13:48:01 +00:00
[NTVDM]: Temporarily fix for r65015 before a proper fix.
svn path=/trunk/; revision=65018
This commit is contained in:
parent
b10d8f4686
commit
d07dc3a5c2
|
@ -2296,9 +2296,16 @@ static BOOLEAN VidBiosSetVideoMode(BYTE ModeNumber)
|
|||
{
|
||||
BYTE Page;
|
||||
COORD Resolution;
|
||||
BOOLEAN DoNotClear = !!(ModeNumber & 0x80);
|
||||
PVGA_REGISTERS VgaMode;
|
||||
|
||||
/*
|
||||
* IBM standard modes do not clear the screen if the
|
||||
* high bit of AL is set (EGA or higher only).
|
||||
* See Ralf Brown: http://www.ctyme.com/intr/rb-0069.htm
|
||||
* for more information.
|
||||
*/
|
||||
BOOLEAN DoNotClear = !!(ModeNumber & 0x80);
|
||||
|
||||
/* Retrieve the real mode number and check its validity */
|
||||
ModeNumber &= 0x7F;
|
||||
// if (ModeNumber >= sizeof(VideoModes)/sizeof(VideoModes[0]))
|
||||
|
@ -2308,8 +2315,13 @@ static BOOLEAN VidBiosSetVideoMode(BYTE ModeNumber)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
/* Check if this is the same mode */
|
||||
if (ModeNumber == Bda->VideoMode) return TRUE;
|
||||
/* Check if this is the current mode */
|
||||
if (ModeNumber == Bda->VideoMode)
|
||||
{
|
||||
/* Just clear the VGA memory if needed */
|
||||
if (!DoNotClear) VgaClearMemory();
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
VgaMode = VideoModes[ModeNumber];
|
||||
|
||||
|
@ -2320,12 +2332,7 @@ static BOOLEAN VidBiosSetVideoMode(BYTE ModeNumber)
|
|||
|
||||
VgaChangePalette(ModeNumber);
|
||||
|
||||
/*
|
||||
* IBM standard modes do not clear the screen if the
|
||||
* high bit of AL is set (EGA or higher only).
|
||||
* See Ralf Brown: http://www.ctyme.com/intr/rb-0069.htm
|
||||
* for more information.
|
||||
*/
|
||||
/* Clear the VGA memory if needed */
|
||||
if (!DoNotClear) VgaClearMemory();
|
||||
|
||||
// Bda->CrtModeControl;
|
||||
|
|
Loading…
Reference in a new issue