From 658026e6267277b27d297c481728f74d160a8481 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 17 Jul 2020 10:31:31 -0400 Subject: [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. Note: I left behind lcd_bitmap in features.txt, because removing it would require considerable work in the manual and the translations. Change-Id: Ia8ca7761f610d9332a0d22a7d189775fb15ec88a --- apps/tree.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'apps/tree.c') diff --git a/apps/tree.c b/apps/tree.c index e159c3465f..316139427d 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -399,9 +399,8 @@ static int update_dir(void) } } #ifdef HAVE_TAGCACHE - if (id3db) + if (id3db) { -#ifdef HAVE_LCD_BITMAP if (global_settings.show_path_in_browser == SHOW_PATH_FULL || global_settings.show_path_in_browser == SHOW_PATH_CURRENT) { @@ -412,13 +411,11 @@ static int update_dir(void) { /* Must clear the title as the list is reused */ gui_synclist_set_title(&tree_lists, NULL, NOICON); - } -#endif + } } else #endif { -#ifdef HAVE_LCD_BITMAP if (tc.browse && tc.browse->title) { int icon = tc.browse->icon; @@ -448,8 +445,7 @@ static int update_dir(void) { /* Must clear the title as the list is reused */ gui_synclist_set_title(&tree_lists, NULL, NOICON); - } -#endif + } } gui_synclist_set_nb_items(&tree_lists, tc.filesindir); @@ -606,9 +602,7 @@ static int dirbrowse(void) char buf[MAX_PATH]; int len; int button; -#ifdef HAVE_LCD_BITMAP int oldbutton; -#endif bool reload_root = false; int lastfilter = *tc.dirfilter; bool lastsortcase = global_settings.sort_case; @@ -643,7 +637,7 @@ static int dirbrowse(void) splash(HZ*2, ID2P(LANG_NO_FILES)); return GO_TO_PREVIOUS; /* No files found for rockbox_browse() */ } - + gui_synclist_draw(&tree_lists); while(1) { bool restore = false; @@ -653,9 +647,7 @@ static int dirbrowse(void) keyclick_set_callback(gui_synclist_keyclick_callback, &tree_lists); button = get_action(CONTEXT_TREE, list_do_action_timeout(&tree_lists, HZ/2)); -#ifdef HAVE_LCD_BITMAP oldbutton = button; -#endif gui_synclist_do_button(&tree_lists, &button,LIST_WRAP_UNLESS_HELD); tc.selected_item = gui_synclist_get_sel_pos(&tree_lists); switch ( button ) { -- cgit v1.2.3