mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:05:43 +00:00
[NTVDM]: No need to re-change to a given video mode when it is already set. Fixes strange changes for e.g. some apps that find intelligent to switch 256 times to mode 13h (for example) before continuing to run.
svn path=/trunk/; revision=65015
This commit is contained in:
parent
cb5688fcf0
commit
53adda2513
1 changed files with 3 additions and 0 deletions
|
@ -2308,6 +2308,9 @@ static BOOLEAN VidBiosSetVideoMode(BYTE ModeNumber)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
/* Check if this is the same mode */
|
||||
if (ModeNumber == Bda->VideoMode) return TRUE;
|
||||
|
||||
VgaMode = VideoModes[ModeNumber];
|
||||
|
||||
DPRINT1("Switching to mode %02Xh %s clearing the screen; VgaMode = 0x%p\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue