This commit is contained in:
twinaphex 2016-10-21 04:27:14 +02:00
parent 34f0a4f49f
commit 370b18e95b

View File

@ -261,7 +261,6 @@ static bool runloop_check_state(event_cmd_state_t *cmd)
static bool old_focus = true; static bool old_focus = true;
bool tmp = false; bool tmp = false;
bool focused = true; bool focused = true;
bool old_is_paused = runloop_paused;
bool pause_pressed = runloop_cmd_triggered(cmd, RARCH_PAUSE_TOGGLE); bool pause_pressed = runloop_cmd_triggered(cmd, RARCH_PAUSE_TOGGLE);
settings_t *settings = config_get_ptr(); settings_t *settings = config_get_ptr();
@ -304,7 +303,7 @@ static bool runloop_check_state(event_cmd_state_t *cmd)
* unpause the libretro core. */ * unpause the libretro core. */
/* FRAMEADVANCE will set us into pause mode. */ /* FRAMEADVANCE will set us into pause mode. */
pause_pressed |= !old_is_paused && runloop_cmd_triggered(cmd, RARCH_FRAMEADVANCE); pause_pressed |= !runloop_paused && runloop_cmd_triggered(cmd, RARCH_FRAMEADVANCE);
if (focused && pause_pressed) if (focused && pause_pressed)
command_event(CMD_EVENT_PAUSE_TOGGLE, NULL); command_event(CMD_EVENT_PAUSE_TOGGLE, NULL);