projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20131202-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
sdl.c
diff --git
a/src/libgame/sdl.c
b/src/libgame/sdl.c
index 3774b320549be56bdb546a15776c135a6a61427e..b9309408a4d1966ea687f6fa0db5b7d04fb64aa4 100644
(file)
--- a/
src/libgame/sdl.c
+++ b/
src/libgame/sdl.c
@@
-85,7
+85,7
@@
static void SDLSetWindowIcon(char *basename)
}
/* set transparent color */
}
/* set transparent color */
- SDL_SetColorKey(surface, S
DL_SRCCOLORKEY
,
+ SDL_SetColorKey(surface, S
ET_TRANSPARENT_PIXEL
,
SDL_MapRGB(surface->format, 0x00, 0x00, 0x00));
SDL_WM_SetIcon(surface, NULL);
SDL_MapRGB(surface->format, 0x00, 0x00, 0x00));
SDL_WM_SetIcon(surface, NULL);
@@
-1706,7
+1706,7
@@
Bitmap *SDLLoadImage(char *filename)
UPDATE_BUSY_STATE();
/* create native transparent surface for current image */
UPDATE_BUSY_STATE();
/* create native transparent surface for current image */
- SDL_SetColorKey(sdl_image_tmp, S
DL_SRCCOLORKEY
,
+ SDL_SetColorKey(sdl_image_tmp, S
ET_TRANSPARENT_PIXEL
,
SDL_MapRGB(sdl_image_tmp->format, 0x00, 0x00, 0x00));
if ((new_bitmap->surface_masked = SDL_DisplayFormat(sdl_image_tmp)) == NULL)
{
SDL_MapRGB(sdl_image_tmp->format, 0x00, 0x00, 0x00));
if ((new_bitmap->surface_masked = SDL_DisplayFormat(sdl_image_tmp)) == NULL)
{