summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/skin_engine/skin_parser.c')
-rw-r--r--apps/gui/skin_engine/skin_parser.c34
1 files changed, 33 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index 7f6e80d108..c05ebca45e 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -381,6 +381,38 @@ static void add_to_ll_chain(struct skin_token_list **list, struct skin_token_lis
381 t->next = item; 381 t->next = item;
382 } 382 }
383} 383}
384
385/* traverse the image linked-list for an image */
386#ifdef HAVE_LCD_BITMAP
387struct gui_img* find_image(char label, struct wps_data *data)
388{
389 struct skin_token_list *list = data->images;
390 while (list)
391 {
392 struct gui_img *img = (struct gui_img *)list->token->value.data;
393 if (img->label == label)
394 return img;
395 list = list->next;
396 }
397 return NULL;
398}
399#endif
400
401/* traverse the viewport linked list for a viewport */
402struct skin_viewport* find_viewport(char label, struct wps_data *data)
403{
404 struct skin_token_list *list = data->viewports;
405 while (list)
406 {
407 struct skin_viewport *vp = (struct skin_viewport *)list->token->value.data;
408 if (vp->label == label)
409 return vp;
410 list = list->next;
411 }
412 return NULL;
413}
414
415
384/* create and init a new wpsll item. 416/* create and init a new wpsll item.
385 * passing NULL to token will alloc a new one. 417 * passing NULL to token will alloc a new one.
386 * You should only pass NULL for the token when the token type (table above) 418 * You should only pass NULL for the token when the token type (table above)
@@ -1841,7 +1873,7 @@ bool skin_data_load(struct wps_data *wps_data,
1841 return false; 1873 return false;
1842 } 1874 }
1843#endif 1875#endif
1844#ifdef HAVE_ALBUMART 1876#if defined(HAVE_ALBUMART) && !defined(__PCTOOL__)
1845 status = audio_status(); 1877 status = audio_status();
1846 if (status & AUDIO_STATUS_PLAY) 1878 if (status & AUDIO_STATUS_PLAY)
1847 { 1879 {