From d4c8a0acfda5fd7551bba7f0b9da8114326ac4bd Mon Sep 17 00:00:00 2001 From: Shaun Inman Date: Thu, 16 Feb 2023 23:25:01 -0500 Subject: [PATCH] settings hud appears on options screens --- src/minarch/main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/minarch/main.c b/src/minarch/main.c index d863190..e65672e 100644 --- a/src/minarch/main.c +++ b/src/minarch/main.c @@ -3029,6 +3029,7 @@ static int Menu_options(MenuList* list) { int dirty = 1; int show_options = 1; + int show_settings = 0; int await_input = 0; int count; @@ -3114,7 +3115,8 @@ static int Menu_options(MenuList* list) { } } - if (PAD_justPressed(BTN_B)) { + // uint32_t now = SDL_GetTicks(); + if (PAD_justPressed(BTN_B)) { // || PAD_tappedMenu(now) show_options = 0; } else if (PAD_justPressed(BTN_A)) { @@ -3169,13 +3171,13 @@ static int Menu_options(MenuList* list) { } } - POW_update(&dirty, NULL, Menu_beforeSleep, Menu_afterSleep); + POW_update(&dirty, &show_settings, Menu_beforeSleep, Menu_afterSleep); if (dirty) { dirty = 0; GFX_clear(screen); - GFX_blitHardwareGroup(screen, 0); + GFX_blitHardwareGroup(screen, show_settings); char* desc = NULL; SDL_Surface* text; @@ -3438,7 +3440,6 @@ static void Menu_loop(void) { POW_enableAutosleep(); PAD_reset(); - // path and string things char* tmp; char rom_name[256]; // without extension or cruft