dwm.c
changeset 1332 b304593057fb
parent 1331 1ee96809e6f2
child 1333 5be4e277ed7c
equal deleted inserted replaced
1331:1ee96809e6f2 1332:b304593057fb
   566 	}
   566 	}
   567 }
   567 }
   568 
   568 
   569 void
   569 void
   570 drawtext(const char *text, unsigned long col[ColLast], Bool invert) {
   570 drawtext(const char *text, unsigned long col[ColLast], Bool invert) {
       
   571 	char buf[256];
   571 	int i, x, y, h, len, olen;
   572 	int i, x, y, h, len, olen;
   572 	char buf[256];
       
   573 	XRectangle r = { dc.x, dc.y, dc.w, dc.h };
   573 	XRectangle r = { dc.x, dc.y, dc.w, dc.h };
   574 
   574 
   575 	XSetForeground(dpy, dc.gc, col[invert ? ColFG : ColBG]);
   575 	XSetForeground(dpy, dc.gc, col[invert ? ColFG : ColBG]);
   576 	XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1);
   576 	XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1);
   577 	if(!text)
   577 	if(!text)