IMG_xcf.c
changeset 320 aa5d55b11751
parent 280 ec4ae96c100c
child 343 5bf0f0d6a74e
     1.1 --- a/IMG_xcf.c	Sun Jan 22 20:11:17 2012 -0500
     1.2 +++ b/IMG_xcf.c	Sun Jan 22 21:52:00 2012 -0500
     1.3 @@ -709,7 +709,7 @@
     1.4    }
     1.5  
     1.6    /* Create the surface of the appropriate type */
     1.7 -  surface = SDL_AllocSurface(SDL_SWSURFACE, head->width, head->height, 32,
     1.8 +  surface = SDL_CreateRGBSurface(SDL_SWSURFACE, head->width, head->height, 32,
     1.9  			     0x00FF0000,0x0000FF00,0x000000FF,0xFF000000);
    1.10  
    1.11    if ( surface == NULL ) {
    1.12 @@ -727,7 +727,7 @@
    1.13    }
    1.14    fp = SDL_RWtell (src);
    1.15   
    1.16 -  lays = SDL_AllocSurface(SDL_SWSURFACE, head->width, head->height, 32,
    1.17 +  lays = SDL_CreateRGBSurface(SDL_SWSURFACE, head->width, head->height, 32,
    1.18  			  0x00FF0000,0x0000FF00,0x000000FF,0xFF000000);
    1.19  
    1.20    if ( lays == NULL ) {
    1.21 @@ -774,7 +774,7 @@
    1.22    if (chnls) {
    1.23      SDL_Surface * chs;
    1.24  
    1.25 -    chs = SDL_AllocSurface(SDL_SWSURFACE, head->width, head->height, 32,
    1.26 +    chs = SDL_CreateRGBSurface(SDL_SWSURFACE, head->width, head->height, 32,
    1.27  			   0x00FF0000,0x0000FF00,0x000000FF,0xFF000000);
    1.28  
    1.29      if (chs == NULL) {