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
This commit is contained in:
parent
32791608fc
commit
5903c07ad7
1 changed files with 2 additions and 2 deletions
|
@ -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":"";
|
||||
|
|
Loading…
Reference in a new issue