aboutsummaryrefslogtreecommitdiffstats
path: root/gadgets
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-12-27 13:13:16 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-12-27 13:13:16 +0000
commitae1d3a5c3a7da94f4bf962dd297d70b855a0dcca (patch)
tree89f3f041f7b95b3da04a1c32a9f155d702dbe0e4 /gadgets
parent90411b45b7b805a08454dd1f3329de1e942301c0 (diff)
downloaddzen-ae1d3a5c3a7da94f4bf962dd297d70b855a0dcca.tar.gz
dzen-ae1d3a5c3a7da94f4bf962dd297d70b855a0dcca.zip
fixed vertical
git-svn-id: http://dzen.googlecode.com/svn/trunk@184 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'gadgets')
-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" : "");