From 16283c0018a584a95a2b4a62522918049d945f75 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 19 Mar 2021 11:34:57 -0400 Subject: main-menu: Don't render final frame before quit --- 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: -- cgit v0.9.1