settings hud appears on options screens

This commit is contained in:
Shaun Inman 2023-02-16 23:25:01 -05:00
parent bf431be48f
commit d4c8a0acfd

View file

@ -3029,6 +3029,7 @@ static int Menu_options(MenuList* list) {
int dirty = 1; int dirty = 1;
int show_options = 1; int show_options = 1;
int show_settings = 0;
int await_input = 0; int await_input = 0;
int count; 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; show_options = 0;
} }
else if (PAD_justPressed(BTN_A)) { 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) { if (dirty) {
dirty = 0; dirty = 0;
GFX_clear(screen); GFX_clear(screen);
GFX_blitHardwareGroup(screen, 0); GFX_blitHardwareGroup(screen, show_settings);
char* desc = NULL; char* desc = NULL;
SDL_Surface* text; SDL_Surface* text;
@ -3438,7 +3440,6 @@ static void Menu_loop(void) {
POW_enableAutosleep(); POW_enableAutosleep();
PAD_reset(); PAD_reset();
// path and string things // path and string things
char* tmp; char* tmp;
char rom_name[256]; // without extension or cruft char rom_name[256]; // without extension or cruft