diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2012-02-28 22:05:28 +1100 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2012-02-28 23:51:01 +1100 |
commit | 34031cba5bddcc29dee0f61b3ea6ee1529014181 (patch) | |
tree | fed3c7dc82c2711f505dc5e51a9c4ce71470c606 /apps/gui/skin_engine/skin_render.c | |
parent | 0807fe8d3634010a8a8303e5b0a7abb2bd28a937 (diff) | |
download | rockbox-34031cba5bddcc29dee0f61b3ea6ee1529014181.tar.gz rockbox-34031cba5bddcc29dee0f61b3ea6ee1529014181.zip |
skin_engine: Clean up %x() handling - beware theme issues
Internally remove some hacks around how %x() is handled.
%x() inside the default viewport will no longer work if
other viewports are used, so if you are using viewports and
%x() make sure it is in a viewport!
Change-Id: I8ecab805d55fc0f8476ff0516cba38e23400aa20
Diffstat (limited to 'apps/gui/skin_engine/skin_render.c')
-rw-r--r-- | apps/gui/skin_engine/skin_render.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_render.c b/apps/gui/skin_engine/skin_render.c index ee42dfa5a7..f86b161eab 100644 --- a/apps/gui/skin_engine/skin_render.c +++ b/apps/gui/skin_engine/skin_render.c | |||
@@ -198,6 +198,13 @@ static bool do_non_text_tags(struct gui_wps *gwps, struct skin_draw_info *info, | |||
198 | #endif | 198 | #endif |
199 | break; | 199 | break; |
200 | #ifdef HAVE_LCD_BITMAP | 200 | #ifdef HAVE_LCD_BITMAP |
201 | case SKIN_TOKEN_IMAGE_DISPLAY: | ||
202 | { | ||
203 | struct gui_img *img = SKINOFFSETTOPTR(skin_buffer, token->value.data); | ||
204 | if (img && img->loaded && do_refresh) | ||
205 | img->display = 0; | ||
206 | } | ||
207 | break; | ||
201 | case SKIN_TOKEN_IMAGE_DISPLAY_LISTICON: | 208 | case SKIN_TOKEN_IMAGE_DISPLAY_LISTICON: |
202 | case SKIN_TOKEN_IMAGE_PRELOAD_DISPLAY: | 209 | case SKIN_TOKEN_IMAGE_PRELOAD_DISPLAY: |
203 | { | 210 | { |