Browse Source

removed useless call

master
Anselm R. Garbe 19 years ago
parent
commit
37faefb1aa
  1. 4
      draw.c

4
draw.c

@ -29,7 +29,6 @@ drawtext(const char *text, unsigned int colidx, Bool border)
int x, y, w, h; int x, y, w, h;
static char buf[256]; static char buf[256];
unsigned int len, olen; unsigned int len, olen;
XGCValues gcv;
XPoint points[5]; XPoint points[5];
XRectangle r = { dc.x, dc.y, dc.w, dc.h }; 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) if(dc.font.set)
XmbDrawString(dpy, dc.drawable, dc.font.set, dc.gc, x, y, buf, len); XmbDrawString(dpy, dc.drawable, dc.font.set, dc.gc, x, y, buf, len);
else { else {
gcv.font = dc.font.xfont->fid; XSetFont(dpy, dc.gc, dc.font.xfont->fid);
XChangeGC(dpy, dc.gc, GCFont, &gcv);
XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len); XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len);
} }
} }

Loading…
Cancel
Save