forked from len0rd/rockbox
Add "%LN" tag to retrieve the list item number of the current item. This allows e.g. putting item numbers in skinned lists.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30568 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e12a832758
commit
28d5f2aa57
5 changed files with 14 additions and 0 deletions
|
|
@ -82,6 +82,12 @@ static int offset_to_item(int offset, bool wrap)
|
|||
item = item % current_list->nb_items;
|
||||
return item;
|
||||
}
|
||||
|
||||
int skinlist_get_item_number()
|
||||
{
|
||||
return current_drawing_line;
|
||||
}
|
||||
|
||||
const char* skinlist_get_item_text(int offset, bool wrap, char* buf, size_t buf_size)
|
||||
{
|
||||
int item = offset_to_item(offset, wrap);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue