forked from len0rd/rockbox
change to %Cd to display albumart (instead of %C to make it more consistant with %Vd/%Vl and %xd/%xl)
Also assume ; in skins are for sublines.. this means if you want ; in text you need to manually escape it (%;) far less false positives then git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26693 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c4fbb07a76
commit
2309d6d1e1
3 changed files with 10 additions and 2 deletions
|
|
@ -390,7 +390,7 @@ static const struct wps_tag all_tags[] = {
|
|||
{ WPS_NO_TOKEN, "Fl", 0, parse_font_load },
|
||||
#ifdef HAVE_ALBUMART
|
||||
{ WPS_NO_TOKEN, "Cl", 0, parse_albumart_load },
|
||||
{ WPS_TOKEN_ALBUMART_DISPLAY, "C", WPS_REFRESH_STATIC, parse_albumart_display },
|
||||
{ WPS_TOKEN_ALBUMART_DISPLAY, "Cd", WPS_REFRESH_STATIC, parse_albumart_display },
|
||||
#endif
|
||||
|
||||
{ WPS_VIEWPORT_ENABLE, "Vd", WPS_REFRESH_DYNAMIC,
|
||||
|
|
|
|||
|
|
@ -190,6 +190,10 @@ int parse_tag(FILE* out, const char* start, bool in_conditional)
|
|||
PUTCH(out, '(');
|
||||
len += 1+dump_arg(out, start+1, 2, true);
|
||||
}
|
||||
else if (MATCH("C"))
|
||||
{
|
||||
fprintf(out, "%%Cd");
|
||||
}
|
||||
else if (MATCH("Cl"))
|
||||
{
|
||||
int read;
|
||||
|
|
@ -395,6 +399,10 @@ top:
|
|||
PUTCH(out, *in++);
|
||||
}
|
||||
}
|
||||
else if (*in == ';')
|
||||
{
|
||||
PUTCH(out, *in++);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (find_escape_character(*in))
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ struct tag_info legal_tags[] =
|
|||
|
||||
{ SKIN_TOKEN_LOAD_FONT, "Fl" , "IF"},
|
||||
{ SKIN_TOKEN_ALBUMART_LOAD, "Cl" , "IIII|ss"},
|
||||
{ SKIN_TOKEN_ALBUMART_DISPLAY, "C" , ""},
|
||||
{ SKIN_TOKEN_ALBUMART_DISPLAY, "Cd" , ""},
|
||||
|
||||
{ SKIN_TOKEN_VIEWPORT_ENABLE, "Vd" , "S"},
|
||||
{ SKIN_TOKEN_UIVIEWPORT_ENABLE, "VI" , "S"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue