shithub: choc

Download patch

ref: 7a3ec6c61e39f39984eb0e11327f0204696b0a94
parent: 8c084734707060e05476f74edb069d76e05b5a06
author: Simon Howard <[email protected]>
date: Sat Feb 23 19:55:07 EST 2008

Fix leftover "junk" displayed on the screen on the initial melt when
using -warp.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1089

--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1555,15 +1555,15 @@
     {
 	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