diff options
author | Anselm R. Garbe <arg@10kloc.org> | 2006-08-24 12:04:41 +0200 |
---|---|---|
committer | Anselm R. Garbe <arg@10kloc.org> | 2006-08-24 12:04:41 +0200 |
commit | 37faefb1aab1a6a36c5a8017e24bbca22fd23530 (patch) | |
tree | df78406de8fbbd82440644e57c2151f1d751ba25 | |
parent | 18ec376aa903d620f3586af4974116a82c74024f (diff) |
removed useless call
-rw-r--r-- | draw.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -29,7 +29,6 @@ drawtext(const char *text, unsigned int colidx, Bool border) | |||
29 | int x, y, w, h; | 29 | int x, y, w, h; |
30 | static char buf[256]; | 30 | static char buf[256]; |
31 | unsigned int len, olen; | 31 | unsigned int len, olen; |
32 | XGCValues gcv; | ||
33 | XPoint points[5]; | 32 | XPoint points[5]; |
34 | XRectangle r = { dc.x, dc.y, dc.w, dc.h }; | 33 | XRectangle r = { dc.x, dc.y, dc.w, dc.h }; |
35 | 34 | ||
@@ -83,8 +82,7 @@ drawtext(const char *text, unsigned int colidx, Bool border) | |||
83 | if(dc.font.set) | 82 | if(dc.font.set) |
84 | XmbDrawString(dpy, dc.drawable, dc.font.set, dc.gc, x, y, buf, len); | 83 | XmbDrawString(dpy, dc.drawable, dc.font.set, dc.gc, x, y, buf, len); |
85 | else { | 84 | else { |
86 | gcv.font = dc.font.xfont->fid; | 85 | XSetFont(dpy, dc.gc, dc.font.xfont->fid); |
87 | XChangeGC(dpy, dc.gc, GCFont, &gcv); | ||
88 | XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len); | 86 | XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len); |
89 | } | 87 | } |
90 | } | 88 | } |