Author: aandrejevic
Date: Wed Aug 7 21:15:02 2013
New Revision: 59671
URL:
http://svn.reactos.org/svn/reactos?rev=59671&view=rev
Log:
[NTVDM]
Clear the VGA memory during initialization.
Clear the graphics framebuffer when switching to graphics mode.
Modified:
branches/ntvdm/subsystems/ntvdm/vga.c
Modified: branches/ntvdm/subsystems/ntvdm/vga.c
URL:
http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/ntvdm/vga.c?re…
==============================================================================
--- branches/ntvdm/subsystems/ntvdm/vga.c [iso-8859-1] (original)
+++ branches/ntvdm/subsystems/ntvdm/vga.c [iso-8859-1] Wed Aug 7 21:15:02 2013
@@ -254,6 +254,9 @@
ConsoleFramebuffer = GraphicsBufferInfo.lpBitMap;
ConsoleMutex = GraphicsBufferInfo.hMutex;
+ /* Clear the framebuffer */
+ ZeroMemory(ConsoleFramebuffer, BitmapInfo->bmiHeader.biSizeImage);
+
/* Set the active buffer */
SetConsoleActiveScreenBuffer(GraphicsConsoleBuffer);
@@ -946,6 +949,9 @@
/* Set the global handle */
TextConsoleBuffer = TextHandle;
+ /* Clear the VGA memory */
+ ZeroMemory(VgaMemory, VGA_NUM_BANKS * VGA_BANK_SIZE);
+
/* Set the default video mode */
BiosSetVideoMode(BIOS_DEFAULT_VIDEO_MODE);
VgaUpdateMode();