summaryrefslogtreecommitdiffstats
path: root/apps/gui/skin_engine/skin_engine.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2013-06-09 21:01:17 +0200
committerThomas Martitz <kugel@rockbox.org>2013-06-09 21:01:47 +0200
commit770fadddd6409898800fb0605548cd2425a58c4f (patch)
treebd8855767d62000f1204dc073efa3130925b17be /apps/gui/skin_engine/skin_engine.c
parent67e1de7b4354e6cbd9199a870f847169525483aa (diff)
downloadrockbox-770fadddd6409898800fb0605548cd2425a58c4f.tar.gz
rockbox-770fadddd6409898800fb0605548cd2425a58c4f.zip
Fix reds (this code needs #ifdef HAVE_ALBUMART)
Change-Id: Ia50cd846d5451b0cb5cf3a6f8097ea9fe3b3c60a
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 5253b88363..c2ed2cdb8c 100644
--- a/apps/gui/skin_engine/skin_engine.c
+++ b/apps/gui/skin_engine/skin_engine.c
@@ -89,6 +89,7 @@ static void gui_skin_reset(struct gui_skin *skin)
skin->needs_full_update = true;
skin->gui_wps.data = data = &skin->data;
/* copy to temp var to protect against memset */
+#ifdef HAVE_ALBUMART
if ((aa_save = SKINOFFSETTOPTR(get_skin_buffer(data), data->albumart)))
{
short old_width, old_height;
@@ -99,6 +100,7 @@ static void gui_skin_reset(struct gui_skin *skin)
data->last_albumart_height = old_height;
}
else
+#endif
memset(data, 0, sizeof(struct wps_data));
skin->data.wps_loaded = false;
skin->data.buflib_handle = -1;