summaryrefslogtreecommitdiffstats
path: root/apps/plugins/puzzles
diff options
context:
space:
mode:
authorFranklin Wei <franklin@rockbox.org>2020-07-14 23:00:16 -0400
committerFranklin Wei <franklin@rockbox.org>2020-07-14 23:04:46 -0400
commit7d005335ba1af1eef4db83f9a0ebec121d38be80 (patch)
treedcf55884c3b454c39c77189b79a84d919f4f28fc /apps/plugins/puzzles
parent987c6575b378a7df85868cd151c5b035b93d6679 (diff)
downloadrockbox-7d005335ba1af1eef4db83f9a0ebec121d38be80.tar.gz
rockbox-7d005335ba1af1eef4db83f9a0ebec121d38be80.zip
puzzles: always reset input state before pause menu
We were improperly conditioning the state reset with `do_pausemenu'. We should reset the input state no matter what. Change-Id: Iaafc59b95e9f1f053b57a34f0f28f7c672c0e327
Diffstat (limited to 'apps/plugins/puzzles')
-rw-r--r--apps/plugins/puzzles/rockbox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/puzzles/rockbox.c b/apps/plugins/puzzles/rockbox.c
index 8e0be04cb1..45733c12a3 100644
--- a/apps/plugins/puzzles/rockbox.c
+++ b/apps/plugins/puzzles/rockbox.c
@@ -1740,6 +1740,9 @@ static int process_input(int tmo, bool do_pausemenu)
if(button == BTN_PAUSE)
{
+ last_keystate = 0;
+ accept_input = true;
+
if(do_pausemenu)
{
/* quick hack to preserve the clipping state */
@@ -1752,9 +1755,6 @@ static int process_input(int tmo, bool do_pausemenu)
if(orig_clipped)
rb_clip(NULL, clip_rect.x, clip_rect.y, clip_rect.width, clip_rect.height);
- last_keystate = 0;
- accept_input = true;
-
return rc;
}
else