Author: hbelusca
Date: Sun Oct 26 15:57:21 2014
New Revision: 65015
URL:
http://svn.reactos.org/svn/reactos?rev=65015&view=rev
Log:
[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.
Modified:
trunk/reactos/subsystems/ntvdm/bios/vidbios.c
Modified: trunk/reactos/subsystems/ntvdm/bios/vidbios.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/ntvdm/bios/vidb…
==============================================================================
--- trunk/reactos/subsystems/ntvdm/bios/vidbios.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/ntvdm/bios/vidbios.c [iso-8859-1] Sun Oct 26 15:57:21 2014
@@ -2308,6 +2308,9 @@
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",