From d2a193e225d71ef779441efb369eac6936d0a9d0 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 6 Jun 2004 22:14:48 +0000 Subject: [PATCH] fix SDL_CreateRGBSurfaceFrom parameters --- stepmania/src/RageSurface_Load_PNG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/RageSurface_Load_PNG.cpp b/stepmania/src/RageSurface_Load_PNG.cpp index 1c2187ad29..1473e142fb 100644 --- a/stepmania/src/RageSurface_Load_PNG.cpp +++ b/stepmania/src/RageSurface_Load_PNG.cpp @@ -94,7 +94,7 @@ static SDL_Surface *RageSurface_Load_PNG( RageFile *f, const char *fn, char erro * the image. Just return an empty surface with only the width and height set. */ if( bHeaderOnly ) { - img = SDL_CreateRGBSurfaceFrom( SDL_SWSURFACE, width, height, 32, 0, 0, 0, 0, NULL ); + img = SDL_CreateRGBSurfaceFrom( NULL, width, height, 32, width*4, 0, 0, 0, 0 ); png_destroy_read_struct( &png, &info_ptr, NULL ); if( !img ) {