diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2009-04-21 06:12:03 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2009-04-21 06:12:03 +0000 |
commit | 2df4dff6d6c2cee91483177d647edfbe14850f80 (patch) | |
tree | d5403fccfa830012dfd41698bdb49a7b61871943 /gadgets | |
parent | 4dd57ded6770bbf767006ddef25bc670f1bca419 (diff) | |
download | dzen-2df4dff6d6c2cee91483177d647edfbe14850f80.tar.gz dzen-2df4dff6d6c2cee91483177d647edfbe14850f80.zip |
corrected a bug where outlined gdbars overflew at 100%
thanks Adrien Barilly
git-svn-id: http://dzen.googlecode.com/svn/trunk@262 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'gadgets')
-rw-r--r-- | gadgets/dbar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gadgets/dbar.c b/gadgets/dbar.c index 752a01d..d4a8520 100644 --- a/gadgets/dbar.c +++ b/gadgets/dbar.c @@ -67,7 +67,7 @@ fdbar(Dbar *dbar, FILE *stream) { fprintf(stream, "%s^ib(1)^fg(%s)^ro(%dx%d)^p(%d)^fg(%s)^r(%dx%d)^p(%d)^ib(0)^fg()%s", dbar->label ? dbar->label : "", dbar->bg, (int)dbar->width, dbar->height, -1*(dbar->width-2), - dbar->fg, (int)l, dbar->height-4>0?dbar->height-4:1, + dbar->fg, (int)l>dbar->width-4?dbar->width-4:(int)l, dbar->height-4>0?dbar->height-4:1, dbar->width-(int)l-1, dbar->pnl ? "\n" : ""); } else { segs = dbar->width / (dbar->segw + dbar->segb); |