From 0be2426528d64f72f6cababaf6bbd85a7d1cc866 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 16 Aug 2010 12:07:39 +0000 Subject: Make %pb without any params work as expected git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27827 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/skin_engine/skin_parser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps') diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index 90fe0ce..1d471e8 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) { -- cgit v1.1