summaryrefslogtreecommitdiffstats
path: root/apps/gui/statusbar-skinned.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-08-12 13:27:10 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-08-12 13:27:10 +0000
commit70ebe46d74dbb10160a878cdb120c9b3e7a8e30c (patch)
tree866757e5ac3efaf06d749e2a7fa10b2160a10da9 /apps/gui/statusbar-skinned.c
parent6d7900e3300a90f9a75a76793427723da0ff73bb (diff)
downloadrockbox-70ebe46d74dbb10160a878cdb120c9b3e7a8e30c.tar.gz
rockbox-70ebe46d74dbb10160a878cdb120c9b3e7a8e30c.tar.bz2
rockbox-70ebe46d74dbb10160a878cdb120c9b3e7a8e30c.zip
New feature for the %xl (image load) tag. If you give it the filename __list_icons__ it will use the list icon strip instead of loading a different bmp.
example: %xl(I, __list_icons__, 0, 0) %xd(I, %Li) ^ display the list icon at position 0,0 in that viewport. (you can of course %xd(Ia) if you really wanted also.) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27787 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/statusbar-skinned.c')
-rw-r--r--apps/gui/statusbar-skinned.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/gui/statusbar-skinned.c b/apps/gui/statusbar-skinned.c
index 3b4dd24512..4dce84b787 100644
--- a/apps/gui/statusbar-skinned.c
+++ b/apps/gui/statusbar-skinned.c
@@ -77,6 +77,16 @@ static int set_title_worker(char* title, enum themable_icons icon,
/* Icon_NOICON == -1 which the skin engine wants at position 1, so + 2 */
token->value.i = icon+2;
}
+ else if (element->params_count)
+ {
+ int i;
+ for (i=0; i<element->params_count; i++)
+ {
+ if (element->params[i].type == CODE)
+ retval |= set_title_worker(title, icon, data,
+ element->params[i].data.code);
+ }
+ }
}
if (element->children_count)
{