From 857741419c7ae2482dbef1c5456e85e35b513a4d Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 6 Aug 2009 01:08:10 +0000 Subject: [PATCH] Move this call a bit up so that wpses without backdrop show none properly (the main backdrop). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22179 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/wps.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/gui/wps.c b/apps/gui/wps.c index bbf169ff96..a5142a0726 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c @@ -92,8 +92,12 @@ static void nextid3available_callback(void* param); void wps_data_load(enum screen_type screen, const char *buf, bool isfile) { - bool loaded_ok = buf && skin_data_load(gui_wps[screen].data, - &screens[screen], buf, isfile); + bool loaded_ok; + + screens[screen].backdrop_unload(BACKDROP_SKIN_WPS); + + loaded_ok = buf && skin_data_load(gui_wps[screen].data, + &screens[screen], buf, isfile); if (!loaded_ok) /* load the hardcoded default */ { char *skin_buf[NB_SCREENS] = { @@ -116,7 +120,6 @@ void wps_data_load(enum screen_type screen, const char *buf, bool isfile) "%pb\n", #endif }; - screens[screen].backdrop_unload(BACKDROP_SKIN_WPS); skin_data_load(gui_wps[screen].data, &screens[screen], skin_buf[screen], false); }