1 /* See LICENSE file for copyright and license details. */
6 setupdraw(DC *dc, Window w) {
9 XGetWindowAttributes(dc->dpy, w, &wa);
10 dc->drawable = XCreatePixmap(dc->dpy, w, wa.width, wa.height,
11 DefaultDepth(dc->dpy, DefaultScreen(dc->dpy)));
12 dc->gc = XCreateGC(dc->dpy, w, 0, NULL);
13 XSetLineAttributes(dc->dpy, dc->gc, 1, LineSolid, CapButt, JoinMiter);
15 XSetFont(dc->dpy, dc->gc, dc->font.xfont->fid);