summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-08-22 23:35:27 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-08-22 23:35:27 +0000
commit94419e9a620773299587d65d977d74167906a19b (patch)
tree850d493ca7bfe2f944ffc6cb3266b3b249c6c161 /apps/gui
parent4ce82b9dd1c2d29d0a6123ab16be60662a9e76c8 (diff)
downloadrockbox-94419e9a620773299587d65d977d74167906a19b.tar.gz
rockbox-94419e9a620773299587d65d977d74167906a19b.zip
Touchscreen list handling: use icon width instead of scrollbar width for the 'ignoring' zone + correct comment that shouldn't be true anymore (and never was AFAIK)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22469 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/bitmap/list.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c
index 2a3a31a548..29b97a8fa3 100644
--- a/apps/gui/bitmap/list.c
+++ b/apps/gui/bitmap/list.c
@@ -285,10 +285,7 @@ void list_draw(struct screen *display, struct gui_synclist *list)
285} 285}
286 286
287#if defined(HAVE_TOUCHSCREEN) 287#if defined(HAVE_TOUCHSCREEN)
288/* This needs to be fixed if we ever get more than 1 touchscreen on a target. 288/* This needs to be fixed if we ever get more than 1 touchscreen on a target. */
289 * This also assumes the whole screen is used, which is a bad assumption but
290 * fine until customizable lists comes in...
291 */
292static bool scrolling=false; 289static bool scrolling=false;
293 290
294static int gui_synclist_touchscreen_scrollbar(struct gui_synclist * gui_list, 291static int gui_synclist_touchscreen_scrollbar(struct gui_synclist * gui_list,
@@ -400,7 +397,7 @@ unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list)
400 */ 397 */
401 if(global_settings.scrollbar == SCROLLBAR_RIGHT && 398 if(global_settings.scrollbar == SCROLLBAR_RIGHT &&
402 x > list_text[screen].x + list_text[screen].width - 399 x > list_text[screen].x + list_text[screen].width -
403 global_settings.scrollbar_width) 400 get_icon_width(SCREEN_MAIN))
404 return ACTION_NONE; 401 return ACTION_NONE;
405 402
406 if (button == (BUTTON_REPEAT|BUTTON_REL)) 403 if (button == (BUTTON_REPEAT|BUTTON_REL))