diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/bitmap/list.c | 4 | ||||
-rw-r--r-- | apps/gui/charcell/list.c | 3 | ||||
-rw-r--r-- | apps/plugins/disktidy.c | 2 |
3 files changed, 3 insertions, 6 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); |
diff --git a/apps/gui/charcell/list.c b/apps/gui/charcell/list.c index 8eebfe7fa1..a0ab02841f 100644 --- a/apps/gui/charcell/list.c +++ b/apps/gui/charcell/list.c | |||
@@ -51,8 +51,7 @@ void gui_synclist_scroll_stop(struct gui_synclist *lists) | |||
51 | void list_draw(struct screen *display, struct gui_synclist *gui_list) | 51 | void list_draw(struct screen *display, struct gui_synclist *gui_list) |
52 | { | 52 | { |
53 | int text_pos; | 53 | int text_pos; |
54 | bool draw_icons = (gui_list->callback_get_item_icon != NULL && | 54 | bool draw_icons = (gui_list->callback_get_item_icon != NULL); |
55 | global_settings.show_icons); | ||
56 | bool draw_cursor; | 55 | bool draw_cursor; |
57 | int i; | 56 | int i; |
58 | int lines; | 57 | int lines; |
diff --git a/apps/plugins/disktidy.c b/apps/plugins/disktidy.c index 1e6c1536e2..df0076f93d 100644 --- a/apps/plugins/disktidy.c +++ b/apps/plugins/disktidy.c | |||
@@ -496,7 +496,6 @@ enum tidy_return tidy_lcd_menu(void) | |||
496 | 496 | ||
497 | case 1: | 497 | case 1: |
498 | { | 498 | { |
499 | bool show_icons = rb->global_settings->show_icons; | ||
500 | struct simplelist_info list; | 499 | struct simplelist_info list; |
501 | rb->simplelist_info_init(&list, "Files to Clean", | 500 | rb->simplelist_info_init(&list, "Files to Clean", |
502 | tidy_type_count, NULL); | 501 | tidy_type_count, NULL); |
@@ -504,7 +503,6 @@ enum tidy_return tidy_lcd_menu(void) | |||
504 | list.get_name = get_name; | 503 | list.get_name = get_name; |
505 | list.action_callback = list_action_callback; | 504 | list.action_callback = list_action_callback; |
506 | rb->simplelist_show_list(&list); | 505 | rb->simplelist_show_list(&list); |
507 | rb->global_settings->show_icons = show_icons; | ||
508 | } | 506 | } |
509 | break; | 507 | break; |
510 | 508 | ||