diff options
author | Anselm R. Garbe <arg@10kloc.org> | 2006-08-24 09:27:01 +0200 |
---|---|---|
committer | Anselm R. Garbe <arg@10kloc.org> | 2006-08-24 09:27:01 +0200 |
commit | 30d72e5f8730bd8e16ead1b3ed40663d1f850fa4 (patch) | |
tree | be530ce30ef17a65c9dbfd5b551d1cf46e679a80 | |
parent | 0ffd139f2c06c3cfb1f6dffbb81ff170a84a1f8a (diff) |
removed unnecessary Xlib call
-rw-r--r-- | draw.c | 3 | ||||
-rw-r--r-- | main.c | 1 |
2 files changed, 2 insertions, 2 deletions
@@ -38,8 +38,6 @@ drawtext(const char *text, Bool invert, Bool border) | |||
38 | 38 | ||
39 | w = 0; | 39 | w = 0; |
40 | if(border) { | 40 | if(border) { |
41 | XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter); | ||
42 | XSetForeground(dpy, dc.gc, dc.border); | ||
43 | points[0].x = dc.x; | 41 | points[0].x = dc.x; |
44 | points[0].y = dc.y; | 42 | points[0].y = dc.y; |
45 | points[1].x = dc.w - 1; | 43 | points[1].x = dc.w - 1; |
@@ -50,6 +48,7 @@ drawtext(const char *text, Bool invert, Bool border) | |||
50 | points[3].y = 0; | 48 | points[3].y = 0; |
51 | points[4].x = 0; | 49 | points[4].x = 0; |
52 | points[4].y = -(dc.h - 1); | 50 | points[4].y = -(dc.h - 1); |
51 | XSetForeground(dpy, dc.gc, dc.border); | ||
53 | XDrawLines(dpy, dc.drawable, dc.gc, points, 5, CoordModePrevious); | 52 | XDrawLines(dpy, dc.drawable, dc.gc, points, 5, CoordModePrevious); |
54 | } | 53 | } |
55 | 54 | ||
@@ -337,6 +337,7 @@ main(int argc, char *argv[]) | |||
337 | /* pixmap */ | 337 | /* pixmap */ |
338 | dc.drawable = XCreatePixmap(dpy, root, mw, mh, DefaultDepth(dpy, screen)); | 338 | dc.drawable = XCreatePixmap(dpy, root, mw, mh, DefaultDepth(dpy, screen)); |
339 | dc.gc = XCreateGC(dpy, root, 0, 0); | 339 | dc.gc = XCreateGC(dpy, root, 0, 0); |
340 | XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter); | ||
340 | 341 | ||
341 | if(maxname) | 342 | if(maxname) |
342 | cmdw = textw(maxname); | 343 | cmdw = textw(maxname); |