fix %pb and other progressbars which are shown one line down from where they should be in viewports

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26698 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2010-06-08 15:26:25 +00:00
parent 2d62a570e3
commit c2a79aae16

View file

@ -1267,6 +1267,8 @@ static int parse_progressbar(const char *wps_bufptr,
line_num++;
line = line->next;
}
if (curr_vp->label != VP_DEFAULT_LABEL)
line_num--;
pb->vp = vp;
pb->have_bitmap_pb = false;
pb->bm.data = NULL; /* no bitmap specified */