1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Franklin Wei 2020-07-14 23:00:16 -04:00
parent 987c6575b3
commit 7d005335ba

View file

@ -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