summaryrefslogtreecommitdiffstats
path: root/lib/skin_parser
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-10-12 12:03:07 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-10-12 12:03:07 +0000
commit69e379a47b6c7830fc17e912eecde6eb5100037f (patch)
treeb6442e9c7ab6939c83b8565dbe20c5ff5fbd131e /lib/skin_parser
parente1c9eb31f79c1c403e03869f19b733fd2b5e7c0e (diff)
downloadrockbox-69e379a47b6c7830fc17e912eecde6eb5100037f.tar.gz
rockbox-69e379a47b6c7830fc17e912eecde6eb5100037f.tar.bz2
rockbox-69e379a47b6c7830fc17e912eecde6eb5100037f.zip
Skin bar tags fix+cleanup:
Don't crash when not enough params were given (i.e forgetting the filename) Make the parser enforce the first 4 params as compulsary Be more leniant and don't require the image filename if one isnt going to be loaded (no more need for the - as the 5th param) Add an option "image" to specify the filename (otherwise the first option will be used if it isnt a recognised option). e.g: %pv(0,0,100,10) or %pv(0,0,100,10, bar.bmp) or %pv(0,0,100,10, ..., image, bar.bmp) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28247 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'lib/skin_parser')
-rw-r--r--lib/skin_parser/tag_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/skin_parser/tag_table.c b/lib/skin_parser/tag_table.c
index 08246b3a89..8b31adab2c 100644
--- a/lib/skin_parser/tag_table.c
+++ b/lib/skin_parser/tag_table.c
@@ -22,7 +22,7 @@
#include "tag_table.h"
#include <string.h>
-#define BAR_PARAMS "*|iiiisN"
+#define BAR_PARAMS "*iiii|sN"
/* The tag definition table */
static const struct tag_info legal_tags[] =
{