aboutsummaryrefslogtreecommitdiffstats
path: root/gadgets/gdbar.c
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-08-18 06:10:00 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-08-18 06:10:00 +0000
commit97aff4bc50153a957f6b9510c3f0549dceab24ad (patch)
treeb5522903fb7e4c87dfc909e86286c79d35dd2b89 /gadgets/gdbar.c
parent8ba334942e6d28505dbe256e231d562b279f0998 (diff)
downloaddzen-97aff4bc50153a957f6b9510c3f0549dceab24ad.tar.gz
dzen-97aff4bc50153a957f6b9510c3f0549dceab24ad.zip
fixes to gdbar.c and gcpubar.c
git-svn-id: http://dzen.googlecode.com/svn/trunk@159 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'gadgets/gdbar.c')
-rw-r--r--gadgets/gdbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gadgets/gdbar.c b/gadgets/gdbar.c
index 3466b4f..c5364f1 100644
--- a/gadgets/gdbar.c
+++ b/gadgets/gdbar.c
@@ -42,7 +42,7 @@ pbar(const char* label, double perc, int maxc, int height, int pnl, int mode) {
double l;
- l = perc * ((double)maxc / 100);
+ l = perc * ((mode ? (double)(maxc-2) : (double) maxc) / 100);
if((int)(l + 0.5) >= (int)l)
l = l + 0.5;