foxygit / doom Log in
commit 6b56827d7672aa19f7ce32debb8b207e0bfeb4fb
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Mon Jan 2 20:27:45 2006 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Mon Jan 2 20:27:45 2006 +0000

    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
---
 src/i_video.c | 12 ++++++++----
 1 file 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);