diff options
-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: |