aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorNebuleon Fumika2013-04-28 10:03:00 -0400
committerNebuleon Fumika2013-04-28 10:03:00 -0400
commit6b370ce35b215d600e0fa37f21bc3ce83dc52d09 (patch)
tree91e24456ac990c9dff3a8156ab1a5b4580f5259c /source
parent0e68b604c6d3111863bfca3d70667ca457c2335c (diff)
downloadsnesemu-6b370ce35b215d600e0fa37f21bc3ce83dc52d09.tar.gz
snesemu-6b370ce35b215d600e0fa37f21bc3ce83dc52d09.tar.bz2
snesemu-6b370ce35b215d600e0fa37f21bc3ce83dc52d09.zip
Fix a GUI bug whereby an incorrect item is considered touched in file selectors.
Diffstat (limited to 'source')
-rw-r--r--source/nds/gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/nds/gui.c b/source/nds/gui.c
index 7c76cff..fea7253 100644
--- a/source/nds/gui.c
+++ b/source/nds/gui.c
@@ -907,10 +907,10 @@ s32 load_file(char **wildcards, char *result, char *default_dir_name)
// ___ 60 above or below these are ignored.
// . . . (+27)
// ___ 192
- if(inputdata.y <= 33 || inputdata.y > 192)
+ if(inputdata.y < GUI_ROW1_Y || inputdata.y > NDS_SCREEN_HEIGHT)
break;
else
- mod = (inputdata.y - 33) / 27;
+ mod = (inputdata.y - GUI_ROW1_Y) / GUI_ROW_SY;
if(selected_item_on_list - selected_item_on_screen + mod >= total_items_num)
break;