diff options
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/apps/tree.c b/apps/tree.c index 6141a000bd..8eaff87fd8 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -75,6 +75,10 @@ | |||
75 | #include "widgets.h" | 75 | #include "widgets.h" |
76 | #endif | 76 | #endif |
77 | 77 | ||
78 | #ifdef HAVE_LCD_COLOR | ||
79 | #include "backdrop.h" | ||
80 | #endif | ||
81 | |||
78 | /* a table for the know file types */ | 82 | /* a table for the know file types */ |
79 | const struct filetype filetypes[] = { | 83 | const struct filetype filetypes[] = { |
80 | { "mp3", TREE_ATTR_MPA, Icon_Audio, VOICE_EXT_MPA }, | 84 | { "mp3", TREE_ATTR_MPA, Icon_Audio, VOICE_EXT_MPA }, |
@@ -877,23 +881,14 @@ static bool dirbrowse(void) | |||
877 | if (start_wps && audio_status() ) | 881 | if (start_wps && audio_status() ) |
878 | { | 882 | { |
879 | int i; | 883 | int i; |
880 | #ifdef HAVE_LCD_COLOR | ||
881 | fb_data* old_backdrop; | ||
882 | #endif | ||
883 | 884 | ||
884 | FOR_NB_SCREENS(i) | 885 | FOR_NB_SCREENS(i) |
885 | screens[i].stop_scroll(); | 886 | screens[i].stop_scroll(); |
886 | #ifdef HAVE_LCD_COLOR | 887 | |
887 | old_backdrop = lcd_get_backdrop(); | ||
888 | #endif | ||
889 | if (gui_wps_show() == SYS_USB_CONNECTED) | 888 | if (gui_wps_show() == SYS_USB_CONNECTED) |
890 | reload_dir = true; | 889 | reload_dir = true; |
891 | #ifdef HAVE_LCD_COLOR | 890 | #ifdef HAVE_LCD_COLOR |
892 | /* check if the backdrop hasn't been cleared */ | 891 | show_main_backdrop(); |
893 | if(global_settings.backdrop_file[0]) | ||
894 | lcd_set_backdrop(old_backdrop); | ||
895 | else | ||
896 | lcd_set_backdrop(NULL); | ||
897 | #endif | 892 | #endif |
898 | #ifdef HAVE_HOTSWAP | 893 | #ifdef HAVE_HOTSWAP |
899 | else | 894 | else |