From 1d4ea12d96f6239be19bd43c426814f7378389fd Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 12 Nov 2003 04:39:49 +0000 Subject: [PATCH] Fix banner cache loading. --- stepmania/src/SDL_utils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/SDL_utils.cpp b/stepmania/src/SDL_utils.cpp index 54d7c919ca..e0891a1395 100644 --- a/stepmania/src/SDL_utils.cpp +++ b/stepmania/src/SDL_utils.cpp @@ -604,8 +604,9 @@ SDL_Surface *mySDL_LoadSurface( CString file ) /* Create the surface. */ SDL_Surface *img = SDL_CreateRGBSurface( - h.width, h.height, h.bpp, h.pitch, + SDL_SWSURFACE, h.width, h.height, h.bpp, h.Rmask, h.Gmask, h.Bmask, h.Amask); + ASSERT( h.pitch == img->pitch ); if( fread(img->pixels, h.height * h.pitch, 1, f) != 1 ) {