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
This commit is contained in:
parent
27785be7f5
commit
6b56827d76
1 changed files with 8 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue