From 7d005335ba1af1eef4db83f9a0ebec121d38be80 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Tue, 14 Jul 2020 23:00:16 -0400 Subject: [PATCH] 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 --- apps/plugins/puzzles/rockbox.c | 6 +++--- 1 file 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