summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/rockbox.c
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/rockbox.c
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/rockbox.c')
-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)
1740 1740
1741 if(button == BTN_PAUSE) 1741 if(button == BTN_PAUSE)
1742 { 1742 {
1743 last_keystate = 0;
1744 accept_input = true;
1745
1743 if(do_pausemenu) 1746 if(do_pausemenu)
1744 { 1747 {
1745 /* quick hack to preserve the clipping state */ 1748 /* quick hack to preserve the clipping state */
@@ -1752,9 +1755,6 @@ static int process_input(int tmo, bool do_pausemenu)
1752 if(orig_clipped) 1755 if(orig_clipped)
1753 rb_clip(NULL, clip_rect.x, clip_rect.y, clip_rect.width, clip_rect.height); 1756 rb_clip(NULL, clip_rect.x, clip_rect.y, clip_rect.width, clip_rect.height);
1754 1757
1755 last_keystate = 0;
1756 accept_input = true;
1757
1758 return rc; 1758 return rc;
1759 } 1759 }
1760 else 1760 else