summaryrefslogtreecommitdiffstats
path: root/apps/gui/skin_engine/skin_engine.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-01-22 16:58:47 +0100
committerThomas Martitz <kugel@rockbox.org>2014-01-22 16:58:58 +0100
commit6cb11764e001e8d4d8417c8f5c93e4168d4b3267 (patch)
tree93126658f1ed0316a0c79275d2f8afede3730c10 /apps/gui/skin_engine/skin_engine.c
parent6022d3100a31266d48d89c4eaa562ed58a1f1909 (diff)
downloadrockbox-6cb11764e001e8d4d8417c8f5c93e4168d4b3267.tar.gz
rockbox-6cb11764e001e8d4d8417c8f5c93e4168d4b3267.zip
skin_engine/backdrops: Have to reload default backdrops from setting when it changed.
When skins use the default backdrop (via %X(-) or no %X at all) and the setting changes it needs to be reloaded, otherwise when changing themes the new theme could show the backdrop from the previous theme. The same needs to be done when re-selecting the same theme after USB because the backdrop file was potentially overwritten. Fixes FS#12892 and FS#12942. Change-Id: Ic2d20740cc385fa99667ce8a71507dbda2efceaf
Diffstat (limited to 'apps/gui/skin_engine/skin_engine.c')
-rw-r--r--apps/gui/skin_engine/skin_engine.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_engine.c b/apps/gui/skin_engine/skin_engine.c
index bf284b7a79..b5178cc798 100644
--- a/apps/gui/skin_engine/skin_engine.c
+++ b/apps/gui/skin_engine/skin_engine.c
@@ -181,6 +181,9 @@ void settings_apply_skins(void)
}
}
first_run = false;
+ /* any backdrop that was loaded with "-" has to be reloaded because
+ * the setting may have changed */
+ skin_backdrop_load_setting();
viewportmanager_theme_changed(THEME_STATUSBAR);
#ifdef HAVE_BACKDROP_IMAGE
FOR_NB_SCREENS(i)