summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_backdrops.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-02-21 19:29:33 +0000
committerThomas Martitz <kugel@rockbox.org>2010-02-21 19:29:33 +0000
commita31624e76e45230aa9f94b16709f86e0042bad91 (patch)
tree769c368493e01c8ad6beb58f8f4843d572bf77bc /apps/gui/skin_engine/skin_backdrops.c
parentd401d7bc5528360130746e4511e03068821cc3af (diff)
downloadrockbox-a31624e76e45230aa9f94b16709f86e0042bad91.tar.gz
rockbox-a31624e76e45230aa9f94b16709f86e0042bad91.zip
Fix the mechanism to fail to parse skins if images fail to load and fix having no backdrop at all (neither %X nor backdrop setting, DancePuffDuo was broken).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24814 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_backdrops.c')
-rw-r--r--apps/gui/skin_engine/skin_backdrops.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_backdrops.c b/apps/gui/skin_engine/skin_backdrops.c
index b057935241..0a89553cd8 100644
--- a/apps/gui/skin_engine/skin_backdrops.c
+++ b/apps/gui/skin_engine/skin_backdrops.c
@@ -62,7 +62,7 @@ char* skin_backdrop_load(char* backdrop, char *bmpdir, enum screen_type screen)
62 else 62 else
63#endif 63#endif
64 buf_size = LCD_BACKDROP_BYTES; 64 buf_size = LCD_BACKDROP_BYTES;
65 65
66 if (backdrop[0] == '-') 66 if (backdrop[0] == '-')
67 { 67 {
68#if NB_SCREENS > 1 68#if NB_SCREENS > 1
@@ -73,7 +73,8 @@ char* skin_backdrop_load(char* backdrop, char *bmpdir, enum screen_type screen)
73 else 73 else
74#endif 74#endif
75 { 75 {
76 if (!global_settings.backdrop_file[0]) 76 char settings_bdrop = global_settings.backdrop_file[0];
77 if (settings_bdrop == '\0' || settings_bdrop == '-')
77 { 78 {
78 return NULL; /* backdrop setting not set */ 79 return NULL; /* backdrop setting not set */
79 } 80 }