summaryrefslogtreecommitdiffstats
path: root/utils/skinupdater
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-06-08 14:43:30 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-06-08 14:43:30 +0000
commitb71dc1f952e47c3f3558f9f1fd26b49c129581df (patch)
tree57901a341e36cb07983dd9878db12fcc0e24e715 /utils/skinupdater
parent82e40076d182fe56aa1b9b3bb16023518801587b (diff)
downloadrockbox-b71dc1f952e47c3f3558f9f1fd26b49c129581df.tar.gz
rockbox-b71dc1f952e47c3f3558f9f1fd26b49c129581df.tar.bz2
rockbox-b71dc1f952e47c3f3558f9f1fd26b49c129581df.zip
fix FS#11384, skinupdater barfed on %Xd and %Vi
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26691 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/skinupdater')
-rw-r--r--utils/skinupdater/skinupdater.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/utils/skinupdater/skinupdater.c b/utils/skinupdater/skinupdater.c
index 6577b77e6a..f724232ff8 100644
--- a/utils/skinupdater/skinupdater.c
+++ b/utils/skinupdater/skinupdater.c
@@ -277,6 +277,19 @@ int parse_tag(FILE* out, const char* start, bool in_conditional)
PUTCH(out, '(');
len += 1+dump_arg(out, start+1, 3, true);
}
+ else if (MATCH("Vi"))
+ {
+ int read = 1;
+
+ PUTCH(out, '(');
+ if ((start[1] >= 'a' && start[1] <= 'z') ||
+ (start[1] >= 'A' && start[1] <= 'Z'))
+ {
+ read = 1+dump_arg(out, start+1, 1, false);
+ PUTCH(out, ',');
+ }
+ len += read + dump_viewport_tags(out, start+read);
+ }
else if (MATCH("Vl") || MATCH("Vi"))
{
int read;
@@ -292,7 +305,7 @@ int parse_tag(FILE* out, const char* start, bool in_conditional)
}
else if (MATCH("X"))
{
- if (*start+1 == 'd')
+ if (*start == 'd')
{
fprintf(out, "(d)");
len ++;