Skip to content

Commit

Permalink
flipped penger on countdown mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Iselgrey authored and rexim committed Nov 8, 2024
1 parent 14ef3fc commit 558f125
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void render_digit_at(SDL_Renderer *renderer, SDL_Texture *digits, size_t digit_i
}

#ifdef PENGER
void render_penger_at(SDL_Renderer *renderer, SDL_Texture *penger, float time, SDL_Window *window)
void render_penger_at(SDL_Renderer *renderer, SDL_Texture *penger, float time, int flipped, SDL_Window *window)
{
int window_width, window_height;
SDL_GetWindowSize(window, &window_width, &window_height);
Expand Down Expand Up @@ -140,7 +140,7 @@ void render_penger_at(SDL_Renderer *renderer, SDL_Texture *penger, float time, S
(int) penger_height / PENGER_SCALE
};

SDL_RenderCopy(renderer, penger, &src_rect, &dst_rect);
SDL_RenderCopyEx(renderer, penger, &src_rect, &dst_rect, 0, NULL, flipped);
}
#endif

Expand Down Expand Up @@ -380,7 +380,7 @@ int main(int argc, char **argv)
// PENGER BEGIN //////////////////////////////

#ifdef PENGER
render_penger_at(renderer, penger, displayed_time, window);
render_penger_at(renderer, penger, displayed_time, mode==MODE_COUNTDOWN, window);
#endif

// PENGER END //////////////////////////////
Expand Down

0 comments on commit 558f125

Please sign in to comment.