From 30de23d8c775753e8c35398c0f4b931f7e37207f Mon Sep 17 00:00:00 2001 From: marco candrian Date: Wed, 2 Apr 2008 02:59:29 +0200 Subject: [PATCH] [widgets/progressbar] fix x-offset value (pb_x actually) --- widgets/progressbar.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/widgets/progressbar.c b/widgets/progressbar.c index 7b8696d5..30da502a 100644 --- a/widgets/progressbar.c +++ b/widgets/progressbar.c @@ -144,12 +144,13 @@ progressbar_draw(Widget *widget, DrawCtx *ctx, int offset, * 1. the full space gets the size of the formerly empty one * 2. the pattern must be mirrored * 3. the formerly 'empty' side gets drawed with fg colors, the 'full' with bg-color - * ticks special: - * round the values to a full tick accordingly - * 4. finally draw the gaps + * + * ticks: + * 1. round the values to a full tick accordingly + * 2. finally draw the gaps */ - pb_x = widget->area.x + 1; + pb_x = widget->area.x + d->border_width + d->border_padding; border_offset = d->border_width / 2; pb_offset = 0;