diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-06-09 16:15:01 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-06-09 16:15:01 +0000 |
commit | 9ac4b446106f733dc1c4be69d97acbcc4c44d9ad (patch) | |
tree | 8b81c2f4e3d0714fd9ec2f0c4a0b4b116055b244 /apps/gui/skin_engine | |
parent | 20b9020adc521aff2650914695c3e2ccd0025188 (diff) | |
download | rockbox-9ac4b446106f733dc1c4be69d97acbcc4c44d9ad.tar.gz rockbox-9ac4b446106f733dc1c4be69d97acbcc4c44d9ad.zip |
SKIN BREAK: %pb, %bl and %pv (bar types) changed so the image is the last param instead of the first. skin updater, skins and manual all updated.
NEW PARSER: add an 'N' param type which will accept any number of strings, will cause very big problems if this isnt the last param for a tag.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26727 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine')
-rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index 23b3d27cbb..561eb978a2 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c | |||
@@ -1245,11 +1245,15 @@ static int parse_progressbar(const char *wps_bufptr, | |||
1245 | using - for any of the params uses "sane" values */ | 1245 | using - for any of the params uses "sane" values */ |
1246 | #ifdef HAVE_LCD_BITMAP | 1246 | #ifdef HAVE_LCD_BITMAP |
1247 | enum { | 1247 | enum { |
1248 | PB_FILENAME = 0, | 1248 | PB_X = 0, |
1249 | PB_X, | ||
1250 | PB_Y, | 1249 | PB_Y, |
1251 | PB_WIDTH, | 1250 | PB_WIDTH, |
1251 | <<<<<<< .mine | ||
1252 | PB_HEIGHT, | 1252 | PB_HEIGHT, |
1253 | PB_FILENAME, | ||
1254 | ======= | ||
1255 | PB_HEIGHT, | ||
1256 | >>>>>>> .r26726 | ||
1253 | }; | 1257 | }; |
1254 | const char *filename; | 1258 | const char *filename; |
1255 | int x, y, height, width; | 1259 | int x, y, height, width; |
@@ -1293,8 +1297,8 @@ static int parse_progressbar(const char *wps_bufptr, | |||
1293 | } | 1297 | } |
1294 | ptr = wps_bufptr + 1; | 1298 | ptr = wps_bufptr + 1; |
1295 | 1299 | ||
1296 | if (!(ptr = parse_list("sdddd", &set, ',', ptr, &filename, | 1300 | if (!(ptr = parse_list("dddds", &set, ',', ptr, |
1297 | &x, &y, &width, &height))) | 1301 | &x, &y, &width, &height, &filename))) |
1298 | return WPS_ERROR_INVALID_PARAM; | 1302 | return WPS_ERROR_INVALID_PARAM; |
1299 | 1303 | ||
1300 | if (LIST_VALUE_PARSED(set, PB_FILENAME)) /* filename */ | 1304 | if (LIST_VALUE_PARSED(set, PB_FILENAME)) /* filename */ |