浏览代码

changed order of variables in drawtext

Anselm R Garbe 17 年之前
父节点
当前提交
69c7b4b0ba
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dwm.c

+ 1 - 1
dwm.c

@@ -569,8 +569,8 @@ drawsquare(Bool filled, Bool empty, Bool invert, unsigned long col[ColLast]) {
 void
 drawtext(const char *text, unsigned long col[ColLast], Bool invert) {
 	int i, x, y, h, len, olen;
-	XRectangle r = { dc.x, dc.y, dc.w, dc.h };
 	char buf[256];
+	XRectangle r = { dc.x, dc.y, dc.w, dc.h };
 
 	XSetForeground(dpy, dc.gc, col[invert ? ColFG : ColBG]);
 	XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1);