diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-03-03 01:38:25 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-03-03 01:38:25 +0000 |
commit | 6a6df5a1ebad4c577d017bdb2a9bbe3684215bba (patch) | |
tree | 2dbc116cc33ce472babf75ec8b8e868482948f0d /apps/gui/skin_engine/wps_debug.c | |
parent | cc4363ad186b229646be01b536f32d0223bef16e (diff) |
some small debug info fixes, add %Li and %lt and make uppercase subimage labels display correctly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24996 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/wps_debug.c')
-rw-r--r-- | apps/gui/skin_engine/wps_debug.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/wps_debug.c b/apps/gui/skin_engine/wps_debug.c index 1d1ae1391a..59bc5edc43 100644 --- a/apps/gui/skin_engine/wps_debug.c +++ b/apps/gui/skin_engine/wps_debug.c @@ -142,6 +142,12 @@ static char *get_token_desc(struct wps_token *token, char *buf, break; #ifdef HAVE_LCD_BITMAP + case WPS_TOKEN_LIST_TITLE_TEXT: + snprintf(buf, bufsize, "list title text"); + break; + case WPS_TOKEN_LIST_TITLE_ICON: + snprintf(buf, bufsize, "list title icon"); + break; case WPS_TOKEN_IMAGE_PRELOAD: snprintf(buf, bufsize, "preload image"); break; @@ -152,7 +158,13 @@ static char *get_token_desc(struct wps_token *token, char *buf, char label = token->value.i&0xFF; struct gui_img *img = find_image(label, data); if (img && img->num_subimages > 1) - subimage = 'a' + (token->value.i>>8); + { + int item = token->value.i>>8; + if (item >= 26) + subimage = 'A' + item-26; + else + subimage = 'a' + item; + } snprintf(buf, bufsize, "display preloaded image '%c%c'", label, subimage); } |