rounding on progressbar fixed

This commit is contained in:
marco candrian 2008-01-07 06:08:20 +01:00 committed by Julien Danjou
parent 81566ec821
commit 40dc6eab21

View file

@ -73,7 +73,7 @@ progressbar_draw(Widget *widget, DrawCtx *ctx, int offset,
widget->area.y = 0;
margin_top = (int) (widget->statusbar->height * (1 - d->height)) / 2 + 0.5 + widget->area.y;
pb_height = (int) (widget->statusbar->height * d->height - (d->gap * (d->bars - 1))) / d->bars + 0.5;
pb_height = (int) ((widget->statusbar->height * d->height - (d->gap * (d->bars - 1))) / d->bars + 0.5);
left_offset = widget->area.x + d->padding_left;
for(i = 0; i < d->bars; i++)