diff options
author | P. J. McDermott <pj@pehjota.net> | 2021-03-19 11:34:57 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2021-03-19 11:34:57 (EDT) |
commit | 16283c0018a584a95a2b4a62522918049d945f75 (patch) | |
tree | 6989c9b533a241051da44bcbd6a00f7a18e5e4ed | |
parent | 5301f9e578f399fb4b78a03ff2b1401f37dcf62d (diff) | |
download | dodge-balls-16283c0018a584a95a2b4a62522918049d945f75.zip dodge-balls-16283c0018a584a95a2b4a62522918049d945f75.tar.gz dodge-balls-16283c0018a584a95a2b4a62522918049d945f75.tar.bz2 |
main-menu: Don't render final frame before quit
-rw-r--r-- | src/main-menu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main-menu.c b/src/main-menu.c index de8bb63..919b047 100644 --- a/src/main-menu.c +++ b/src/main-menu.c @@ -369,6 +369,9 @@ db_main_menu(void) default: break; } + if (_db_main_menu_quit > 0) { + break; + } SDL_SetRenderDrawColor(renderer, 0x7F, 0x7F, 0x7F, 0xFF); SDL_RenderClear(renderer); SDL_RenderCopy(renderer, texture_title, NULL, &dest_rect); @@ -384,9 +387,6 @@ db_main_menu(void) } } SDL_RenderPresent(renderer); - if (_db_main_menu_quit > 0) { - break; - } } err: |