diff options
Diffstat (limited to 'gadgets/gdbar.c')
-rw-r--r-- | gadgets/gdbar.c | 2 |
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; |