summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_display.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-11-01 15:48:31 +0000
committerThomas Martitz <kugel@rockbox.org>2009-11-01 15:48:31 +0000
commit3216d32a0538e4b75ae9e82dadc555011181633f (patch)
tree5aa262498e2c8b2f7e2468be6f4407a76a9a687c /apps/gui/skin_engine/skin_display.c
parent30faf032ad56fcdc84c0d03af341b6cbd0374340 (diff)
downloadrockbox-3216d32a0538e4b75ae9e82dadc555011181633f.tar.gz
rockbox-3216d32a0538e4b75ae9e82dadc555011181633f.zip
Move find_viewport() and find_image() to skin_parser.c where the reset of the linked-list handling sits. That enables removing duplicated code from checkwps. Also remove a few stubs in favor having the restart playback mechanism on albumart change #ifdef __PCTOOL__
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23465 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/skin_engine/skin_display.c')
-rw-r--r--apps/gui/skin_engine/skin_display.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c
index 743f1b7a35..51f86e5686 100644
--- a/apps/gui/skin_engine/skin_display.c
+++ b/apps/gui/skin_engine/skin_display.c
@@ -489,34 +489,6 @@ static bool evaluate_conditional(struct gui_wps *gwps, int *token_index)
489 return true; 489 return true;
490} 490}
491 491
492#ifdef HAVE_LCD_BITMAP
493struct gui_img* find_image(char label, struct wps_data *data)
494{
495 struct skin_token_list *list = data->images;
496 while (list)
497 {
498 struct gui_img *img = (struct gui_img *)list->token->value.data;
499 if (img->label == label)
500 return img;
501 list = list->next;
502 }
503 return NULL;
504}
505#endif
506
507struct skin_viewport* find_viewport(char label, struct wps_data *data)
508{
509 struct skin_token_list *list = data->viewports;
510 while (list)
511 {
512 struct skin_viewport *vp = (struct skin_viewport *)list->token->value.data;
513 if (vp->label == label)
514 return vp;
515 list = list->next;
516 }
517 return NULL;
518}
519
520 492
521/* Read a (sub)line to the given alignment format buffer. 493/* Read a (sub)line to the given alignment format buffer.
522 linebuf is the buffer where the data is actually stored. 494 linebuf is the buffer where the data is actually stored.