From 6b56827d7672aa19f7ce32debb8b207e0bfeb4fb Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 2 Jan 2006 20:27:45 +0000 Subject: 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 #include @@ -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); -- cgit v1.2.3