diff options
author | Victor Gamper <victor@wenzeslaus.de> | 2020-01-26 20:43:17 +0100 |
---|---|---|
committer | Victor Gamper <victor@wenzeslaus.de> | 2020-01-26 20:43:17 +0100 |
commit | 7f02f46188998de2767e5f057da34ac9c9d80a20 (patch) | |
tree | 78ca49a5b3504d5570b58f97de839de20daa154d /PidginImage.c | |
parent | 4abb5e4664654591ba8beecf7774b69365c46d14 (diff) | |
download | c-catch-7f02f46188998de2767e5f057da34ac9c9d80a20.tar.gz c-catch-7f02f46188998de2767e5f057da34ac9c9d80a20.zip |
Added dead birds
Diffstat (limited to 'PidginImage.c')
-rw-r--r-- | PidginImage.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/PidginImage.c b/PidginImage.c index 969fad0..791926d 100644 --- a/PidginImage.c +++ b/PidginImage.c @@ -10,12 +10,15 @@ static int animation_index = 0, delay, ax = 1; static SDL_Rect sdl_rect_output, sdl_rect_source; static SDL_Surface* image_pidgin; +SDL_Surface* image_pidgin_dead; void Pidgin_Init() { SDL_RWops* rwops = SDL_RWFromConstMem(pidgin_bmp, sizeof(pidgin_bmp) / sizeof(char)); image_pidgin = SDL_LoadBMP_RW(rwops,1); SDL_SetColorKey(image_pidgin, SDL_SRCCOLORKEY, SDL_MapRGB(image_pidgin->format, 255, 0, 255)); - //SDL_FreeRW(rwops); + rwops = SDL_RWFromConstMem(pidgin_dead_bmp, sizeof(pidgin_dead_bmp) / sizeof(char)); + image_pidgin_dead = SDL_LoadBMP_RW(rwops,1); + SDL_SetColorKey(image_pidgin_dead, SDL_SRCCOLORKEY, SDL_MapRGB(image_pidgin->format, 255, 0, 255)); sdl_rect_source.x = 0; sdl_rect_source.w = PIDGIN_WIDTH; |