IMG_jpg.c
changeset 320 aa5d55b11751
parent 288 cbf4a9d168ff
child 322 92e073f230d0
     1.1 --- a/IMG_jpg.c	Sun Jan 22 20:11:17 2012 -0500
     1.2 +++ b/IMG_jpg.c	Sun Jan 22 21:52:00 2012 -0500
     1.3 @@ -416,7 +416,7 @@
     1.4  		lib.jpeg_calc_output_dimensions(&cinfo);
     1.5  
     1.6  		/* Allocate an output surface to hold the image */
     1.7 -		surface = SDL_AllocSurface(SDL_SWSURFACE,
     1.8 +		surface = SDL_CreateRGBSurface(SDL_SWSURFACE,
     1.9  		        cinfo.output_width, cinfo.output_height, 32,
    1.10  #if SDL_BYTEORDER == SDL_LIL_ENDIAN
    1.11  		                   0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000);