diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-08-16 12:07:39 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-08-16 12:07:39 +0000 |
commit | 0be2426528d64f72f6cababaf6bbd85a7d1cc866 (patch) | |
tree | e96b50b71aae658195d9ae24a9f847416d5abb57 /apps/gui | |
parent | a71db516f2e005ffd5642e568fa38f61faf4d047 (diff) |
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/gui')
-rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 6 |
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, pb->have_bitmap_pb = false; pb->bm.data = NULL; /* no bitmap specified */ pb->follow_lang_direction = follow_lang_direction > 0; + pb->nofill = false; + pb->slider = NULL; pb->invert_fill_direction = false; + pb->horizontal = true; if (element->params_count == 0) { @@ -619,9 +622,6 @@ static int parse_progressbar_tag(struct skin_element* element, pb->bm.data = param->data.text; curr_param = 5; - pb->invert_fill_direction = false; - pb->nofill = false; - pb->slider = NULL; pb->horizontal = pb->width > pb->height; while (curr_param < element->params_count) { |