forked from len0rd/rockbox
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
This commit is contained in:
parent
6d7900e330
commit
70ebe46d74
7 changed files with 43 additions and 8 deletions
|
|
@ -142,6 +142,7 @@ static bool do_non_text_tags(struct gui_wps *gwps, struct skin_draw_info *info,
|
|||
}
|
||||
break;
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
case SKIN_TOKEN_IMAGE_DISPLAY_LISTICON:
|
||||
case SKIN_TOKEN_IMAGE_PRELOAD_DISPLAY:
|
||||
{
|
||||
struct image_display *id = token->value.data;
|
||||
|
|
@ -163,7 +164,10 @@ static bool do_non_text_tags(struct gui_wps *gwps, struct skin_draw_info *info,
|
|||
/* NOTE: get_token_value() returns values starting at 1! */
|
||||
if (a == -1)
|
||||
a = (out && *out) ? 1 : 2;
|
||||
a--;
|
||||
if (token->type == SKIN_TOKEN_IMAGE_DISPLAY_LISTICON)
|
||||
a -= 2; /* 2 is added in statusbar-skinned.c! */
|
||||
else
|
||||
a--;
|
||||
a += id->offset;
|
||||
|
||||
/* Clear the image, as in conditionals */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue