diff options
author | P. J. McDermott <pj@pehjota.net> | 2021-03-19 10:14:12 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2021-03-19 10:14:12 (EDT) |
commit | cbd4831540e8cf26b63ae13fa06aac7b68ac0b0e (patch) | |
tree | bb0b0e366aed7d147fa4753f5247001b9440ce49 /src | |
parent | efaf76d2f22c967d22327f2535060fd73b4ae7a8 (diff) | |
download | dodge-balls-cbd4831540e8cf26b63ae13fa06aac7b68ac0b0e.zip dodge-balls-cbd4831540e8cf26b63ae13fa06aac7b68ac0b0e.tar.gz dodge-balls-cbd4831540e8cf26b63ae13fa06aac7b68ac0b0e.tar.bz2 |
main-menu: Render background in each frame
Diffstat (limited to 'src')
-rw-r--r-- | src/main-menu.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main-menu.c b/src/main-menu.c index 0998d6d..8782c3e 100644 --- a/src/main-menu.c +++ b/src/main-menu.c @@ -117,9 +117,6 @@ db_main_menu(void) renderer = db_get_renderer(); - /* Render background */ - SDL_SetRenderDrawColor(renderer, 0x7F, 0x7F, 0x7F, 0xFF); - text_color.r = 0x00; text_color.g = 0x00; text_color.b = 0xFF; @@ -361,6 +358,7 @@ db_main_menu(void) default: break; } + SDL_SetRenderDrawColor(renderer, 0x7F, 0x7F, 0x7F, 0xFF); SDL_RenderClear(renderer); SDL_RenderCopy(renderer, texture_title, NULL, &dest_rect); for (i = 0; i < n + 2; ++i) { |