shithub: choc

Download patch

ref: 6b56827d7672aa19f7ce32debb8b207e0bfeb4fb
parent: 27785be7f59555e7b80eb8693f4ed007b9867859
author: Simon Howard <[email protected]>
date: Mon Jan 2 15:27:45 EST 2006

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

--- 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,11 +924,11 @@
     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