aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
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}