Author: hbelusca
Date: Mon Nov 17 00:34:29 2014
New Revision: 65425
URL:
http://svn.reactos.org/svn/reactos?rev=65425&view=rev
Log:
[NTVDM]: Use the ScreenMode variable in other places too...
Modified:
trunk/reactos/subsystems/ntvdm/hardware/vga.c
Modified: trunk/reactos/subsystems/ntvdm/hardware/vga.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/ntvdm/hardware/…
==============================================================================
--- trunk/reactos/subsystems/ntvdm/hardware/vga.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/ntvdm/hardware/vga.c [iso-8859-1] Mon Nov 17 00:34:29 2014
@@ -1057,8 +1057,8 @@
*/
if (ConsoleFramebuffer == NULL) return;
- /* Check if this is text mode or graphics mode */
- if (VgaGcRegisters[VGA_GC_MISC_REG] & VGA_GC_MISC_NOALPHA)
+ /* Check if we are in text or graphics mode */
+ if (ScreenMode == GRAPHICS_MODE)
{
/* Graphics mode */
PBYTE GraphicsBuffer = (PBYTE)ConsoleFramebuffer;
@@ -1333,7 +1333,7 @@
VgaCrtcRegisters[VGA_CRTC_CURSOR_LOC_HIGH_REG]);
/* Just return if we are not in text mode */
- if (VgaGcRegisters[VGA_GC_MISC_REG] & VGA_GC_MISC_NOALPHA) return;
+ if (ScreenMode != TEXT_MODE) return;
if (CursorStart < CursorEnd)
{
@@ -1844,8 +1844,8 @@
UpdateRectangle.Right,
UpdateRectangle.Bottom);
- /* Check if this is text mode or graphics mode */
- if (VgaGcRegisters[VGA_GC_MISC_REG] & VGA_GC_MISC_NOALPHA)
+ /* Check if we are in text or graphics mode */
+ if (ScreenMode == GRAPHICS_MODE)
{
/* Graphics mode */
ConsoleBufferHandle = GraphicsConsoleBuffer;