summaryrefslogtreecommitdiff
path: root/PidginImage.c
diff options
context:
space:
mode:
authorVictor Gamper <victor@wenzeslaus.de>2020-01-26 20:43:17 +0100
committerVictor Gamper <victor@wenzeslaus.de>2020-01-26 20:43:17 +0100
commit7f02f46188998de2767e5f057da34ac9c9d80a20 (patch)
tree78ca49a5b3504d5570b58f97de839de20daa154d /PidginImage.c
parent4abb5e4664654591ba8beecf7774b69365c46d14 (diff)
downloadc-catch-7f02f46188998de2767e5f057da34ac9c9d80a20.tar.gz
c-catch-7f02f46188998de2767e5f057da34ac9c9d80a20.zip
Added dead birds
Diffstat (limited to 'PidginImage.c')
-rw-r--r--PidginImage.c5
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;