summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2010-06-08 13:31:39 +0000
committerTeruaki Kawashima <teru@rockbox.org>2010-06-08 13:31:39 +0000
commite6c9691f0b2a9c4ca412cc54b7bd4c425d57b491 (patch)
tree13982218a7da96383f01e811639dfc33509d2819
parent8a52d171fedf1a568f65a17f0634e2b8a2703b8d (diff)
downloadrockbox-e6c9691f0b2a9c4ca412cc54b7bd4c425d57b491.tar.gz
rockbox-e6c9691f0b2a9c4ca412cc54b7bd4c425d57b491.tar.bz2
rockbox-e6c9691f0b2a9c4ca412cc54b7bd4c425d57b491.zip
don't disable backdrop when the file name starts with 'd', e.g. %X(dock.bmp).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26689 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/skin_engine/skin_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index e40f881c83..f423340b2a 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -1090,7 +1090,7 @@ static int parse_image_special(const char *wps_bufptr,
if (token->type == WPS_TOKEN_IMAGE_BACKDROP)
{
/* format: %X|filename.bmp| or %Xd */
- if (*(wps_bufptr+1) == 'd')
+ if (!strncmp(wps_bufptr, "(d)", 3))
{
wps_data->backdrop = NULL;
return skip_end_of_line(wps_bufptr);