summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-08-16 12:07:39 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-08-16 12:07:39 +0000
commit0be2426528d64f72f6cababaf6bbd85a7d1cc866 (patch)
treee96b50b71aae658195d9ae24a9f847416d5abb57 /apps
parenta71db516f2e005ffd5642e568fa38f61faf4d047 (diff)
downloadrockbox-0be2426528d64f72f6cababaf6bbd85a7d1cc866.tar.gz
rockbox-0be2426528d64f72f6cababaf6bbd85a7d1cc866.zip
Make %pb without any params work as expected
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27827 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/skin_engine/skin_parser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index 90fe0ceec4..1d471e8580 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -557,7 +557,10 @@ static int parse_progressbar_tag(struct skin_element* element,
557 pb->have_bitmap_pb = false; 557 pb->have_bitmap_pb = false;
558 pb->bm.data = NULL; /* no bitmap specified */ 558 pb->bm.data = NULL; /* no bitmap specified */
559 pb->follow_lang_direction = follow_lang_direction > 0; 559 pb->follow_lang_direction = follow_lang_direction > 0;
560 pb->nofill = false;
561 pb->slider = NULL;
560 pb->invert_fill_direction = false; 562 pb->invert_fill_direction = false;
563 pb->horizontal = true;
561 564
562 if (element->params_count == 0) 565 if (element->params_count == 0)
563 { 566 {
@@ -619,9 +622,6 @@ static int parse_progressbar_tag(struct skin_element* element,
619 pb->bm.data = param->data.text; 622 pb->bm.data = param->data.text;
620 623
621 curr_param = 5; 624 curr_param = 5;
622 pb->invert_fill_direction = false;
623 pb->nofill = false;
624 pb->slider = NULL;
625 pb->horizontal = pb->width > pb->height; 625 pb->horizontal = pb->width > pb->height;
626 while (curr_param < element->params_count) 626 while (curr_param < element->params_count)
627 { 627 {