summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2006-05-18 22:00:28 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2006-05-18 22:00:28 +0000
commit965e824923e63b6fd53113ed4c4c2c04692b2fe4 (patch)
treeb4fb969a879cf18ecc372671081e260b6119c61a /apps/tree.c
parentb5ddf412ad0cf55d96f91006a73c113dd2753ef5 (diff)
downloadrockbox-965e824923e63b6fd53113ed4c4c2c04692b2fe4.tar.gz
rockbox-965e824923e63b6fd53113ed4c4c2c04692b2fe4.zip
Check if backdrop available at wps load. Clear old backdrop pointer when the user has removed it while being in the menu. Fixes bug 5351
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9961 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 435ea8880a..6141a000bd 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -889,7 +889,11 @@ static bool dirbrowse(void)
889 if (gui_wps_show() == SYS_USB_CONNECTED) 889 if (gui_wps_show() == SYS_USB_CONNECTED)
890 reload_dir = true; 890 reload_dir = true;
891#ifdef HAVE_LCD_COLOR 891#ifdef HAVE_LCD_COLOR
892 lcd_set_backdrop(old_backdrop); 892 /* check if the backdrop hasn't been cleared */
893 if(global_settings.backdrop_file[0])
894 lcd_set_backdrop(old_backdrop);
895 else
896 lcd_set_backdrop(NULL);
893#endif 897#endif
894#ifdef HAVE_HOTSWAP 898#ifdef HAVE_HOTSWAP
895 else 899 else