Skip to content

Commit

Permalink
Fix wimp ui.
Browse files Browse the repository at this point in the history
  • Loading branch information
orbea committed Jan 14, 2019
1 parent f0994a0 commit b3157c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions retroarch.c
Original file line number Diff line number Diff line change
Expand Up @@ -2581,6 +2581,7 @@ static enum runloop_state runloop_check_state(
static input_bits_t last_input = {{0}};
#endif
static bool old_quit_key = false;
static bool quit_key = false;
static bool runloop_exec = false;
static bool old_focus = true;
bool is_focused = false;
Expand All @@ -2598,8 +2599,6 @@ static enum runloop_state runloop_check_state(
static uint64_t seq = 0;
#endif
#endif
bool quit_key = BIT256_GET(
current_input, RARCH_QUIT_KEY);

#ifdef HAVE_LIBNX
/* Should be called once per frame */
Expand Down Expand Up @@ -2721,6 +2720,8 @@ static enum runloop_state runloop_check_state(

/* Check quit key */
{
bool quit_key = BIT256_GET(
current_input, RARCH_QUIT_KEY);
bool trig_quit_key = quit_key && !old_quit_key;

old_quit_key = quit_key;
Expand Down

0 comments on commit b3157c1

Please sign in to comment.