summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-06-28 20:11:51 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-06-28 20:11:51 +0000
commit3d240f1e2a34e616c2aba22b58ea78de7f277127 (patch)
tree528a01366abca1f8e9e2d083e2b92d48575bba16 /apps
parent604447c47513c5a819068a57b6d2ecb77c70ea4d (diff)
downloadrockbox-3d240f1e2a34e616c2aba22b58ea78de7f277127.tar.gz
rockbox-3d240f1e2a34e616c2aba22b58ea78de7f277127.tar.bz2
rockbox-3d240f1e2a34e616c2aba22b58ea78de7f277127.zip
Small fix for touchscreen interface
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17856 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/bitmap/list.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c
index d7494dbc29..2b59fc8489 100644
--- a/apps/gui/bitmap/list.c
+++ b/apps/gui/bitmap/list.c
@@ -353,6 +353,9 @@ unsigned gui_synclist_do_touchpad(struct gui_synclist * gui_list, struct viewpor
if(actual_y%line_height == 0) /* Pressed a border */
return ACTION_NONE;
+
+ if(actual_y >= line_height*gui_list->nb_items) /* Pressed below the list */
+ return ACTION_NONE;
if (line != gui_list->selected_item - gui_list->start_item[SCREEN_MAIN] && button ^ BUTTON_REL)
{