From 6b370ce35b215d600e0fa37f21bc3ce83dc52d09 Mon Sep 17 00:00:00 2001 From: Nebuleon Fumika Date: Sun, 28 Apr 2013 10:03:00 -0400 Subject: Fix a GUI bug whereby an incorrect item is considered touched in file selectors. --- source/nds/gui.c | 4 ++-- 1 file 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; -- cgit v1.2.3