summaryrefslogtreecommitdiffstats
path: root/apps/gui/skin_engine/skin_engine.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2013-12-30 23:35:23 +1100
committerJonathan Gordon <rockbox@jdgordon.info>2013-12-30 23:35:23 +1100
commit124c969f491378c2efd984ea3f000230651f1ff6 (patch)
tree9838aeb86e691ff929195ab0b2e7168158258199 /apps/gui/skin_engine/skin_engine.c
parent00b3fd2a667d95c80a7086a8698210b308850968 (diff)
downloadrockbox-124c969f491378c2efd984ea3f000230651f1ff6.tar.gz
rockbox-124c969f491378c2efd984ea3f000230651f1ff6.zip
Fix build error
Change-Id: I32e06cc41c70e225622c87539feaca5f92131065
Diffstat (limited to 'apps/gui/skin_engine/skin_engine.c')
-rw-r--r--apps/gui/skin_engine/skin_engine.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_engine.c b/apps/gui/skin_engine/skin_engine.c
index 8b3efda6ae..bf284b7a79 100644
--- a/apps/gui/skin_engine/skin_engine.c
+++ b/apps/gui/skin_engine/skin_engine.c
@@ -133,8 +133,10 @@ void gui_sync_skin_init(void)
FOR_NB_SCREENS(i)
{
skin_data_free_buflib_allocs(&skins[j][i].data);
+#ifdef HAVE_BACKDROP_IMAGE
if (skins[j][i].data.backdrop_id != -1)
skin_backdrop_unload(skins[j][i].data.backdrop_id);
+#endif
gui_skin_reset(&skins[j][i]);
skins[j][i].gui_wps.display = &screens[i];
}