aboutsummaryrefslogtreecommitdiff
path: root/source/nds/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/nds/gui.c')
-rw-r--r--source/nds/gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/nds/gui.c b/source/nds/gui.c
index 83b0eec..4564432 100644
--- a/source/nds/gui.c
+++ b/source/nds/gui.c
@@ -3918,7 +3918,7 @@ u32 menu(u16 *screen, bool8 FirstInvocation)
ds2_getrawInput(&inputdata);
wait_Allkey_release(0);
/* Back button at the top of every menu but the main one */
- if(current_menu != &main_menu && inputdata.x > 231 && inputdata.y <= 25)
+ if(current_menu != &main_menu && inputdata.x >= BACK_BUTTON_X && inputdata.y < BACK_BUTTON_Y + ICON_BACK.y)
{
choose_menu(current_menu->options->sub_menu);
break;