summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-03-07 21:07:41 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-03-07 21:07:41 +0000
commit0376208a484437cd3690aa3661bb84955c4013b0 (patch)
tree8d23f796b2e2b30512b72237b5825ca976aac9bd /apps
parentfb70ec6ff927684843944c46a0e7869e799367e9 (diff)
downloadrockbox-0376208a484437cd3690aa3661bb84955c4013b0.tar.gz
rockbox-0376208a484437cd3690aa3661bb84955c4013b0.zip
revert r25054 - tags which have an off and a list of option should have off as the first not last option. also fix it so the no icon position actually works.
you can use %?Li<no|yes> if you want to. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25063 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/skin_engine/skin_tokens.c2
-rw-r--r--apps/gui/statusbar-skinned.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c
index 2cd5aaecee..486a2efc76 100644
--- a/apps/gui/skin_engine/skin_tokens.c
+++ b/apps/gui/skin_engine/skin_tokens.c
@@ -418,7 +418,7 @@ const char *get_token_value(struct gui_wps *gwps,
418 return (char*)token->value.data; 418 return (char*)token->value.data;
419 case WPS_TOKEN_LIST_TITLE_ICON: 419 case WPS_TOKEN_LIST_TITLE_ICON:
420 if (intval) 420 if (intval)
421 *intval = MIN(token->value.i, limit-1); 421 *intval = token->value.i;
422 snprintf(buf, buf_size, "%d", token->value.i); 422 snprintf(buf, buf_size, "%d", token->value.i);
423 return buf; 423 return buf;
424 424
diff --git a/apps/gui/statusbar-skinned.c b/apps/gui/statusbar-skinned.c
index 840ad63c40..0902950599 100644
--- a/apps/gui/statusbar-skinned.c
+++ b/apps/gui/statusbar-skinned.c
@@ -58,7 +58,8 @@ bool sb_set_title_text(char* title, enum themable_icons icon, enum screen_type s
58 } 58 }
59 else if (sb_skin_data[screen].tokens[i].type == WPS_TOKEN_LIST_TITLE_ICON) 59 else if (sb_skin_data[screen].tokens[i].type == WPS_TOKEN_LIST_TITLE_ICON)
60 { 60 {
61 sb_skin_data[screen].tokens[i].value.i = icon+1; 61 /* Icon_NOICON == -1 which the skin engine wants at position 1, so + 2 */
62 sb_skin_data[screen].tokens[i].value.i = icon+2;
62 } 63 }
63 } 64 }
64 return retval; 65 return retval;