IMG_pcx.c
changeset 320 aa5d55b11751
parent 280 ec4ae96c100c
child 343 5bf0f0d6a74e
     1.1 --- a/IMG_pcx.c	Sun Jan 22 20:11:17 2012 -0500
     1.2 +++ b/IMG_pcx.c	Sun Jan 22 21:52:00 2012 -0500
     1.3 @@ -140,7 +140,7 @@
     1.4  		error = "unsupported PCX format";
     1.5  		goto done;
     1.6  	}
     1.7 -	surface = SDL_AllocSurface(SDL_SWSURFACE, width, height,
     1.8 +	surface = SDL_CreateRGBSurface(SDL_SWSURFACE, width, height,
     1.9  				   bits, Rmask, Gmask, Bmask, Amask);
    1.10  	if ( surface == NULL )
    1.11  		goto done;