fix SDL_CreateRGBSurfaceFrom parameters

This commit is contained in:
Glenn Maynard
2004-06-06 22:14:48 +00:00
parent c419182c30
commit d2a193e225
+1 -1
View File
@@ -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 )
{