diff options
author | Nebuleon Fumika | 2012-12-21 00:05:07 -0500 |
---|---|---|
committer | Nebuleon Fumika | 2012-12-21 00:05:07 -0500 |
commit | 5585c035fbec86ee4bec79865357479142e94b9f (patch) | |
tree | 91c6e59229412fba768c66bb3881bf1cef3dfa6b /source/nds | |
parent | 712c249e8c2b614555a6492b520244fe12cd1910 (diff) | |
download | snesemu-5585c035fbec86ee4bec79865357479142e94b9f.tar.gz snesemu-5585c035fbec86ee4bec79865357479142e94b9f.tar.bz2 snesemu-5585c035fbec86ee4bec79865357479142e94b9f.zip |
Fix an off-by-one in the previous commit's touch handling code.
Diffstat (limited to 'source/nds')
-rw-r--r-- | source/nds/gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |