diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2011-09-18 12:35:32 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2011-09-18 12:35:32 +0000 |
commit | 28d5f2aa57e8963a82849b2009274e8272094c86 (patch) | |
tree | edbff857b85cc952f745e18a650cdb0a42a10c59 /apps/gui/bitmap | |
parent | e12a8327584e8ddbff7341d612bac732096764fa (diff) |
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
Diffstat (limited to 'apps/gui/bitmap')
-rw-r--r-- | apps/gui/bitmap/list-skinned.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/gui/bitmap/list-skinned.c b/apps/gui/bitmap/list-skinned.c index 5f53784ccc..208b2df681 100644 --- a/apps/gui/bitmap/list-skinned.c +++ b/apps/gui/bitmap/list-skinned.c @@ -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); |