aewl
diff draw.c @ 601:bfea29f1e4a4
final2 indicator
author | arg@mig29 |
---|---|
date | Fri, 01 Dec 2006 12:52:16 +0100 |
parents | ad94ffdfd9ba |
children | 3c765cc4bce4 |
line diff
1.1 --- a/draw.c Fri Dec 01 12:39:13 2006 +0100 1.2 +++ b/draw.c Fri Dec 01 12:52:16 2006 +0100 1.3 @@ -36,7 +36,7 @@ 1.4 unsigned int len, olen; 1.5 XGCValues gcv; 1.6 XRectangle r = { dc.x, dc.y, dc.w, dc.h }; 1.7 - XPoint pt[3]; 1.8 + XPoint pt[5]; 1.9 1.10 XSetForeground(dpy, dc.gc, col[ColBG]); 1.11 XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1); 1.12 @@ -81,13 +81,17 @@ 1.13 XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1); 1.14 } 1.15 if(border) { 1.16 - pt[0].x = dc.x; 1.17 - pt[0].y = dc.y + dc.h; 1.18 - pt[1].x = 0; 1.19 - pt[1].y = -dc.h; 1.20 - pt[2].x = dc.w; 1.21 - pt[2].y = 0; 1.22 - XDrawLines(dpy, dc.drawable, dc.gc, pt, 3, CoordModePrevious); 1.23 + pt[0].x = dc.x + 1; 1.24 + pt[0].y = dc.y + 1; 1.25 + pt[1].x = dc.w - 2; 1.26 + pt[1].y = 0; 1.27 + pt[2].x = 0; 1.28 + pt[2].y = dc.h - 2; 1.29 + pt[3].x = -(dc.w - 2); 1.30 + pt[3].y = 0; 1.31 + pt[4].x = 0; 1.32 + pt[4].y = -(dc.h - 2); 1.33 + XDrawLines(dpy, dc.drawable, dc.gc, pt, 5, CoordModePrevious); 1.34 } 1.35 } 1.36