diff options
| author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-06-28 20:11:51 +0000 |
|---|---|---|
| committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2008-06-28 20:11:51 +0000 |
| commit | 3d240f1e2a34e616c2aba22b58ea78de7f277127 (patch) | |
| tree | 528a01366abca1f8e9e2d083e2b92d48575bba16 | |
| parent | 604447c47513c5a819068a57b6d2ecb77c70ea4d (diff) | |
| download | rockbox-3d240f1e2a34e616c2aba22b58ea78de7f277127.zip rockbox-3d240f1e2a34e616c2aba22b58ea78de7f277127.tar.gz rockbox-3d240f1e2a34e616c2aba22b58ea78de7f277127.tar.bz2 rockbox-3d240f1e2a34e616c2aba22b58ea78de7f277127.tar.xz | |
Small fix for touchscreen interface
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17856 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/gui/bitmap/list.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c index d7494db..2b59fc8 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) { |