summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/wps_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/skin_engine/wps_debug.c')
-rw-r--r--apps/gui/skin_engine/wps_debug.c14
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,
142 break; 142 break;
143 143
144#ifdef HAVE_LCD_BITMAP 144#ifdef HAVE_LCD_BITMAP
145 case WPS_TOKEN_LIST_TITLE_TEXT:
146 snprintf(buf, bufsize, "list title text");
147 break;
148 case WPS_TOKEN_LIST_TITLE_ICON:
149 snprintf(buf, bufsize, "list title icon");
150 break;
145 case WPS_TOKEN_IMAGE_PRELOAD: 151 case WPS_TOKEN_IMAGE_PRELOAD:
146 snprintf(buf, bufsize, "preload image"); 152 snprintf(buf, bufsize, "preload image");
147 break; 153 break;
@@ -152,7 +158,13 @@ static char *get_token_desc(struct wps_token *token, char *buf,
152 char label = token->value.i&0xFF; 158 char label = token->value.i&0xFF;
153 struct gui_img *img = find_image(label, data); 159 struct gui_img *img = find_image(label, data);
154 if (img && img->num_subimages > 1) 160 if (img && img->num_subimages > 1)
155 subimage = 'a' + (token->value.i>>8); 161 {
162 int item = token->value.i>>8;
163 if (item >= 26)
164 subimage = 'A' + item-26;
165 else
166 subimage = 'a' + item;
167 }
156 snprintf(buf, bufsize, "display preloaded image '%c%c'", 168 snprintf(buf, bufsize, "display preloaded image '%c%c'",
157 label, subimage); 169 label, subimage);
158 } 170 }