aboutsummaryrefslogtreecommitdiffstats
path: root/gadgets/gdbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'gadgets/gdbar.c')
-rw-r--r--gadgets/gdbar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gadgets/gdbar.c b/gadgets/gdbar.c
index 67e5dda..80f2948 100644
--- a/gadgets/gdbar.c
+++ b/gadgets/gdbar.c
@@ -65,9 +65,9 @@ pbar(const char* label, double perc, int maxc, int height, int segw, int segh, i
printf("%s^ib(1)", label ? label : "");
for(i=0; i < segs; i++) {
if(i<segsa)
- printf("^fg(%s)^p(-%d)^r(%dx%d+%d-%d')", fg, segw, segw, segh, 0, (segh+segb)*(i+1));
+ printf("^fg(%s)^p(-%d)^r(%dx%d+%d-%d')", fg, i?segw:0, segw, segh, 0, (segh+segb)*(i+1));
else
- printf("^fg(%s)^p(-%d)^r(%dx%d+%d-%d')", bg, segw, segw, segh, 0, (segh+segb)*(i+1));
+ printf("^fg(%s)^p(-%d)^r(%dx%d+%d-%d')", bg, i?segw:0, segw, segh, 0, (segh+segb)*(i+1));
}
printf("^ib(0)^fg()%s", pnl ? "\n" : "");