From 5585c035fbec86ee4bec79865357479142e94b9f Mon Sep 17 00:00:00 2001 From: Nebuleon Fumika Date: Fri, 21 Dec 2012 00:05:07 -0500 Subject: Fix an off-by-one in the previous commit's touch handling code. --- source/nds/gui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/nds/gui.c') diff --git a/source/nds/gui.c b/source/nds/gui.c index f2d9af6..2f9e1d2 100644 --- a/source/nds/gui.c +++ b/source/nds/gui.c @@ -3802,9 +3802,9 @@ u32 menu(u16 *screen) break; // ___ 33 This screen has 6 possible rows. Touches // ___ 60 above or below these are ignored. - // . . . (+27) + // . . . (+27) The row between 33 and 60 is [1], though! // ___ 192 - current_option_num = (inputdata.y - 33) / 27; + current_option_num = (inputdata.y - 33) / 27 + 1; current_option = current_menu->options + current_option_num; -- cgit v1.2.3