equal
deleted
inserted
replaced
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) |