From 3d240f1e2a34e616c2aba22b58ea78de7f277127 Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Sat, 28 Jun 2008 20:11:51 +0000 Subject: [PATCH] Small fix for touchscreen interface git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17856 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/bitmap/list.c | 3 +++ 1 file changed, 3 insertions(+) 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) {