summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2008-02-24 00:55:07 +0000
committerSimon Howard2008-02-24 00:55:07 +0000
commit7a3ec6c61e39f39984eb0e11327f0204696b0a94 (patch)
treea47b8f6899048c7cccdd6b6af5c05723c96f11be /src
parent8c084734707060e05476f74edb069d76e05b5a06 (diff)
downloadchocolate-doom-7a3ec6c61e39f39984eb0e11327f0204696b0a94.tar.gz
chocolate-doom-7a3ec6c61e39f39984eb0e11327f0204696b0a94.tar.bz2
chocolate-doom-7a3ec6c61e39f39984eb0e11327f0204696b0a94.zip
Fix leftover "junk" displayed on the screen on the initial melt when
using -warp. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1089
Diffstat (limited to 'src')
-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);