diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-08-12 13:27:10 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-08-12 13:27:10 +0000 |
commit | 70ebe46d74dbb10160a878cdb120c9b3e7a8e30c (patch) | |
tree | 866757e5ac3efaf06d749e2a7fa10b2160a10da9 /apps/gui/skin_engine/skin_display.c | |
parent | 6d7900e3300a90f9a75a76793427723da0ff73bb (diff) | |
download | rockbox-70ebe46d74dbb10160a878cdb120c9b3e7a8e30c.tar.gz 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/skin_engine/skin_display.c')
-rw-r--r-- | apps/gui/skin_engine/skin_display.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c index 83fea8c73c..d0044b14d8 100644 --- a/apps/gui/skin_engine/skin_display.c +++ b/apps/gui/skin_engine/skin_display.c @@ -441,7 +441,11 @@ void wps_display_images(struct gui_wps *gwps, struct viewport* vp) while (list) { struct gui_img *img = (struct gui_img*)list->token->value.data; - if (img->loaded) + if (img->using_preloaded_icons && img->display >= 0) + { + screen_put_icon(display, img->x, img->y, img->display); + } + else if (img->loaded) { if (img->display >= 0) { |