all repos — mgba @ 002c59d79c0538165e7c9ac829a4a2018916829d

mGBA Game Boy Advance Emulator

mGUI: Fix cycling through config setting states with accept button
Vicki Pfau vi@endrift.com
Wed, 14 Oct 2020 23:40:32 -0700
commit

002c59d79c0538165e7c9ac829a4a2018916829d

parent

cece34380676778820b24981f9c79aaa92fa3026

2 files changed, 9 insertions(+), 2 deletions(-)

jump to
M CHANGESCHANGES

@@ -28,6 +28,7 @@ - Qt: Fix drawing on macOS break when using OpenGL (fixes mgba.io/i/1899)

- Qt: Fix stride changing when toggling SGB borders (fixes mgba.io/i/1898) - Qt: Fix aliasing on background logo (fixes mgba.io/i/1886) - mGUI: Fix closing down a game if an exit is signalled + - mGUI: Fix cycling through config setting states with accept button - mVL: Fix injecting accidentally draining non-injection buffer - VFS: Fix directory node listing on some filesystems Misc:
M src/feature/gui/gui-config.csrc/feature/gui/gui-config.c

@@ -332,8 +332,14 @@ continue;

} #endif if (item->validStates) { - ++item->state; - if (item->state >= item->nStates) { + if (item->state < item->nStates - 1) { + do { + ++item->state; + } while (!item->validStates[item->state] && item->state < item->nStates - 1); + if (!item->validStates[item->state]) { + item->state = 0; + } + } else { item->state = 0; } }