summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-08-18 10:00:10 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-08-18 10:00:10 +0100
commit69c7b4b0baa19ef62ae514d06e8e870d87ab71b6 (patch)
tree47b6dd9112b217941a9b89365be8eba9ecd18510
parentapplied Martin Hurton's drawtext() patch (diff)
downloaddwm-69c7b4b0baa19ef62ae514d06e8e870d87ab71b6.tar.gz
dwm-69c7b4b0baa19ef62ae514d06e8e870d87ab71b6.zip
changed order of variables in drawtext
Diffstat (limited to '')
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index d903e9a..4ad7cea 100644
--- a/dwm.c
+++ b/dwm.c
@@ -569,8 +569,8 @@ drawsquare(Bool filled, Bool empty, Bool invert, unsigned long col[ColLast]) {
569void 569void
570drawtext(const char *text, unsigned long col[ColLast], Bool invert) { 570drawtext(const char *text, unsigned long col[ColLast], Bool invert) {
571 int i, x, y, h, len, olen; 571 int i, x, y, h, len, olen;
572 XRectangle r = { dc.x, dc.y, dc.w, dc.h };
573 char buf[256]; 572 char buf[256];
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);