IMG_tif.c
changeset 320 aa5d55b11751
parent 280 ec4ae96c100c
child 343 5bf0f0d6a74e
     1.1 --- a/IMG_tif.c	Sun Jan 22 20:11:17 2012 -0500
     1.2 +++ b/IMG_tif.c	Sun Jan 22 21:52:00 2012 -0500
     1.3 @@ -235,7 +235,7 @@
     1.4  	Gmask = 0x0000FF00;
     1.5  	Bmask = 0x00FF0000;
     1.6  	Amask = 0xFF000000;
     1.7 -	surface = SDL_AllocSurface(SDL_SWSURFACE, img_width, img_height, 32,
     1.8 +	surface = SDL_CreateRGBSurface(SDL_SWSURFACE, img_width, img_height, 32,
     1.9  		Rmask, Gmask, Bmask, Amask);
    1.10  	if(!surface)
    1.11  		goto error;