diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-12-27 11:51:35 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-12-27 11:51:35 +0000 |
commit | 90411b45b7b805a08454dd1f3329de1e942301c0 (patch) | |
tree | 41b4245bcea825963dc702c4489f03854fd106f8 /gadgets | |
parent | 1e15edb513b0ba5c69c94328685c6d21368671bd (diff) | |
download | dzen-90411b45b7b805a08454dd1f3329de1e942301c0.tar.gz dzen-90411b45b7b805a08454dd1f3329de1e942301c0.zip |
off by one
git-svn-id: http://dzen.googlecode.com/svn/trunk@183 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'gadgets')
-rw-r--r-- | gadgets/gdbar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gadgets/gdbar.c b/gadgets/gdbar.c index f5dff11..67e5dda 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+1)*(i+1)); + printf("^fg(%s)^p(-%d)^r(%dx%d+%d-%d')", fg, segw, 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+1)*(i+1)); + printf("^fg(%s)^p(-%d)^r(%dx%d+%d-%d')", bg, segw, segw, segh, 0, (segh+segb)*(i+1)); } printf("^ib(0)^fg()%s", pnl ? "\n" : ""); |