summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2006-01-02 20:27:45 +0000
committerSimon Howard2006-01-02 20:27:45 +0000
commit6b56827d7672aa19f7ce32debb8b207e0bfeb4fb (patch)
treed54c0fc7c40476c43a91b87b52a784c1eb8a6ddb /src
parent27785be7f59555e7b80eb8693f4ed007b9867859 (diff)
downloadchocolate-doom-6b56827d7672aa19f7ce32debb8b207e0bfeb4fb.tar.gz
chocolate-doom-6b56827d7672aa19f7ce32debb8b207e0bfeb4fb.tar.bz2
chocolate-doom-6b56827d7672aa19f7ce32debb8b207e0bfeb4fb.zip
Clear the screen AFTER initialising the loading disk buffer, so that
bits of loading disk are not visible on the initial screen melt. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 248
Diffstat (limited to 'src')
-rw-r--r--src/i_video.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/i_video.c b/src/i_video.c
index 5bc83d5b..65468410 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: i_video.c 240 2006-01-02 00:06:30Z fraggle $
+// $Id: i_video.c 248 2006-01-02 20:27:45Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,10 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.42 2006/01/02 20:27:45 fraggle
+// Clear the screen AFTER initialising the loading disk buffer, so that
+// bits of loading disk are not visible on the initial screen melt.
+//
// Revision 1.41 2006/01/02 00:06:30 fraggle
// Make functions static. Remove unused variable.
//
@@ -168,7 +172,7 @@
//-----------------------------------------------------------------------------
static const char
-rcsid[] = "$Id: i_video.c 240 2006-01-02 00:06:30Z fraggle $";
+rcsid[] = "$Id: i_video.c 248 2006-01-02 20:27:45Z fraggle $";
#include <SDL.h>
#include <ctype.h>
@@ -920,12 +924,12 @@ void I_InitGraphics(void)
else
screens[0] = (unsigned char *) Z_Malloc (SCREENWIDTH * SCREENHEIGHT, PU_STATIC, NULL);
- memset(screens[0], 0, SCREENWIDTH * SCREENHEIGHT);
-
// Loading from disk icon
LoadDiskImage();
+ memset(screens[0], 0, SCREENWIDTH * SCREENHEIGHT);
+
// We need SDL to give us translated versions of keys as well
SDL_EnableUNICODE(1);