summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/i_video.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/i_video.c b/src/i_video.c
index b8ba1758..8251234e 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1555,16 +1555,16 @@ void I_InitGraphics(void)
{
screens[0] = (unsigned char *) Z_Malloc (SCREENWIDTH * SCREENHEIGHT,
PU_STATIC, NULL);
-
- // Clear the screen to black.
-
- memset(screens[0], 0, SCREENWIDTH * SCREENHEIGHT);
}
// "Loading from disk" icon
LoadDiskImage();
+ // Clear the screen to black.
+
+ memset(screens[0], 0, SCREENWIDTH * SCREENHEIGHT);
+
// We need SDL to give us translated versions of keys as well
SDL_EnableUNICODE(1);