Skip to content

Commit

Permalink
Fix cancel button not reverting option menu2
Browse files Browse the repository at this point in the history
  • Loading branch information
joel16 committed Sep 29, 2019
1 parent cee9a71 commit 00e7094
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions source/menus/menu_fileoptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -787,8 +787,12 @@ void Menu_ControlOptions(u64 input, TouchInfo touchInfo) {
}
else if (touchInfo.state == TouchEnded && touchInfo.tapType != TapNone) {
// Touched outside
if (tapped_outside(touchInfo, 350, 85, 930, 635))
if (tapped_outside(touchInfo, 350, 85, 930, 635)) {
row = 0;
column = 0;
options_more = false;
MENU_DEFAULT_STATE = MENU_STATE_HOME;
}
// Column 0
else if (touchInfo.firstTouch.py >= 188 && touchInfo.firstTouch.py <= 289) {
// Row 0
Expand Down Expand Up @@ -843,8 +847,12 @@ void Menu_ControlOptions(u64 input, TouchInfo touchInfo) {
}
}
// Cancel Button
else if (tapped_inside(touchInfo, 880 - options_cancel_width, 585 - options_cancel_height, 920 + options_cancel_width, 625 + options_cancel_height))
else if (tapped_inside(touchInfo, 880 - options_cancel_width, 585 - options_cancel_height, 920 + options_cancel_width, 625 + options_cancel_height)) {
row = 0;
column = 0;
options_more = false;
MENU_DEFAULT_STATE = MENU_STATE_HOME;
}
}
}

Expand Down

0 comments on commit 00e7094

Please sign in to comment.