summaryrefslogtreecommitdiffstats
path: root/apps/gui/skin_engine/skin_tokens.c
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2011-09-24 19:09:33 +0000
committerFrank Gevaerts <frank@gevaerts.be>2011-09-24 19:09:33 +0000
commit5903c07ad7eca79e70d009ac5b2a0f6e96977989 (patch)
treee21da7b1e171be937df31dfd31ee8a4b2f00ffd9 /apps/gui/skin_engine/skin_tokens.c
parent32791608fc29d100d79c2e4ac486aaddb3cd9f62 (diff)
downloadrockbox-5903c07ad7eca79e70d009ac5b2a0f6e96977989.tar.gz
rockbox-5903c07ad7eca79e70d009ac5b2a0f6e96977989.zip
Make %LT 1-based. This tag will likely only be used to print the item number (as opposed to e.g. using it as an index to a bitmap strip, which has the obvious problem of not knowing how many items there are), and most people prefer 1-based numbering systems.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30594 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_tokens.c')
-rw-r--r--apps/gui/skin_engine/skin_tokens.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c
index 7bf588080d..8cc0ea78e3 100644
--- a/apps/gui/skin_engine/skin_tokens.c
+++ b/apps/gui/skin_engine/skin_tokens.c
@@ -934,8 +934,8 @@ const char *get_token_value(struct gui_wps *gwps,
}
case SKIN_TOKEN_LIST_ITEM_NUMBER:
if (intval)
- *intval = skinlist_get_item_number();
- snprintf(buf, buf_size, "%d",skinlist_get_item_number());
+ *intval = skinlist_get_item_number() + 1;
+ snprintf(buf, buf_size, "%d",skinlist_get_item_number()) + 1;
return buf;
case SKIN_TOKEN_LIST_ITEM_IS_SELECTED:
return skinlist_is_selected_item()?"s":"";