diff options
author | Teruaki Kawashima <teru@rockbox.org> | 2010-10-26 12:19:39 +0000 |
---|---|---|
committer | Teruaki Kawashima <teru@rockbox.org> | 2010-10-26 12:19:39 +0000 |
commit | a900a29091deb5ac24abf70bed6292c9eb080fcf (patch) | |
tree | 4189c6df1f93c16e8d3a3a2bd5e1cc30855edc50 /apps/gui/bitmap/list.c | |
parent | c2f4e03b9ecfe44e9aeefcdd2d23c308407ecb56 (diff) | |
download | rockbox-a900a29091deb5ac24abf70bed6292c9eb080fcf.tar.gz rockbox-a900a29091deb5ac24abf70bed6292c9eb080fcf.zip |
fix that disktidy plugin and shopper plugin is not usable when Show Icons setting is turned off.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28362 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/bitmap/list.c')
-rw-r--r-- | apps/gui/bitmap/list.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c index 4323bb0350..ec12ee5367 100644 --- a/apps/gui/bitmap/list.c +++ b/apps/gui/bitmap/list.c | |||
@@ -331,7 +331,7 @@ void list_draw(struct screen *display, struct gui_synclist *list) | |||
331 | } | 331 | } |
332 | /* do the icon */ | 332 | /* do the icon */ |
333 | display->set_viewport(&list_icons); | 333 | display->set_viewport(&list_icons); |
334 | if (list->callback_get_item_icon && global_settings.show_icons) | 334 | if (list->callback_get_item_icon != NULL) |
335 | { | 335 | { |
336 | screen_put_icon_with_offset(display, show_cursor?1:0, | 336 | screen_put_icon_with_offset(display, show_cursor?1:0, |
337 | (line),show_cursor?ICON_PADDING:0,draw_offset, | 337 | (line),show_cursor?ICON_PADDING:0,draw_offset, |
@@ -468,7 +468,7 @@ unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list) | |||
468 | return ACTION_NONE; | 468 | return ACTION_NONE; |
469 | 469 | ||
470 | /* x and y are relative to info_vp */ | 470 | /* x and y are relative to info_vp */ |
471 | if (global_settings.show_icons) | 471 | if (gui_list->callback_get_item_icon != NULL) |
472 | icon_width += get_icon_width(screen); | 472 | icon_width += get_icon_width(screen); |
473 | if (show_cursor) | 473 | if (show_cursor) |
474 | icon_width += get_icon_width(screen); | 474 | icon_width += get_icon_width(screen); |