From 40dc6eab2101631edf8b58b252904d1ddbf5601e Mon Sep 17 00:00:00 2001 From: marco candrian Date: Mon, 7 Jan 2008 06:08:20 +0100 Subject: [PATCH] rounding on progressbar fixed --- widgets/progressbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/progressbar.c b/widgets/progressbar.c index 731db2b10..2998a4c06 100644 --- a/widgets/progressbar.c +++ b/widgets/progressbar.c @@ -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++)