Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed building on Linux
  • Loading branch information
slouken committed Jan 23, 2012
1 parent e18dc99 commit ee02f5c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion IMG_gif.c
Expand Up @@ -261,7 +261,7 @@ IMG_LoadGIF_RW(SDL_RWops *src)

#ifdef USED_BY_SDL
if ( Gif89.transparent >= 0 ) {
SDL_SetColorKey(image, SDL_SRCCOLORKEY, Gif89.transparent);
SDL_SetColorKey(image, SDL_TRUE, Gif89.transparent);
}
#endif

Expand Down
2 changes: 1 addition & 1 deletion IMG_jpg.c
Expand Up @@ -436,7 +436,7 @@ SDL_Surface *IMG_LoadJPG_RW(SDL_RWops *src)
lib.jpeg_calc_output_dimensions(&cinfo);

/* Allocate an output surface to hold the image */
surface = SDL_AllocSurface(SDL_SWSURFACE,
surface = SDL_CreateRGBSurface(SDL_SWSURFACE,
cinfo.output_width, cinfo.output_height, 24,
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
0x0000FF, 0x00FF00, 0xFF0000,
Expand Down
2 changes: 1 addition & 1 deletion IMG_png.c
Expand Up @@ -481,7 +481,7 @@ SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *src)
(Uint8)transv->red,
(Uint8)transv->green,
(Uint8)transv->blue);
SDL_SetColorKey(surface, SDL_SRCCOLORKEY, ckey);
SDL_SetColorKey(surface, SDL_TRUE, ckey);
}

/* Create the array of pointers to image data */
Expand Down
2 changes: 1 addition & 1 deletion IMG_tga.c
Expand Up @@ -235,7 +235,7 @@ SDL_Surface *IMG_LoadTGA_RW(SDL_RWops *src)
}
free(pal);
if(ckey >= 0)
SDL_SetColorKey(img, SDL_SRCCOLORKEY, ckey);
SDL_SetColorKey(img, SDL_TRUE, ckey);
} else {
/* skip unneeded colormap */
SDL_RWseek(src, palsiz, RW_SEEK_CUR);
Expand Down

0 comments on commit ee02f5c

Please sign in to comment.