summaryrefslogtreecommitdiffstats
path: root/apps/gui/wps.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-08-06 01:08:10 +0000
committerThomas Martitz <kugel@rockbox.org>2009-08-06 01:08:10 +0000
commit857741419c7ae2482dbef1c5456e85e35b513a4d (patch)
tree7a50068fecee7be5638858a2bff2b281bb833bde /apps/gui/wps.c
parent31d709f9bb1662fd59c72f3b6466c3b28e463394 (diff)
downloadrockbox-857741419c7ae2482dbef1c5456e85e35b513a4d.tar.gz
rockbox-857741419c7ae2482dbef1c5456e85e35b513a4d.tar.bz2
rockbox-857741419c7ae2482dbef1c5456e85e35b513a4d.zip
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
Diffstat (limited to 'apps/gui/wps.c')
-rw-r--r--apps/gui/wps.c9
1 files 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);
}