aboutsummaryrefslogtreecommitdiff
path: root/draw.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-08-24 12:04:41 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-08-24 12:04:41 +0200
commit37faefb1aab1a6a36c5a8017e24bbca22fd23530 (patch)
treedf78406de8fbbd82440644e57c2151f1d751ba25 /draw.c
parent18ec376aa903d620f3586af4974116a82c74024f (diff)
downloaddmenu-37faefb1aab1a6a36c5a8017e24bbca22fd23530.tar.gz
dmenu-37faefb1aab1a6a36c5a8017e24bbca22fd23530.tar.bz2
dmenu-37faefb1aab1a6a36c5a8017e24bbca22fd23530.zip
removed useless call
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/draw.c b/draw.c
index 6802403..ba1fafd 100644
--- a/draw.c
+++ b/draw.c
@@ -29,7 +29,6 @@ drawtext(const char *text, unsigned int colidx, Bool border)
int x, y, w, h;
static char buf[256];
unsigned int len, olen;
- XGCValues gcv;
XPoint points[5];
XRectangle r = { dc.x, dc.y, dc.w, dc.h };
@@ -83,8 +82,7 @@ drawtext(const char *text, unsigned int colidx, Bool border)
if(dc.font.set)
XmbDrawString(dpy, dc.drawable, dc.font.set, dc.gc, x, y, buf, len);
else {
- gcv.font = dc.font.xfont->fid;
- XChangeGC(dpy, dc.gc, GCFont, &gcv);
+ XSetFont(dpy, dc.gc, dc.font.xfont->fid);
XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len);
}
}