draw.c
changeset 794 6fa07beba3a7
parent 793 79cb72e82b21
child 817 90435b444620
--- a/draw.c	Tue Feb 20 13:46:21 2007 +0100
+++ b/draw.c	Tue Feb 20 13:48:02 2007 +0100
@@ -6,17 +6,6 @@
 
 /* static */
 
-static unsigned int
-textnw(const char *text, unsigned int len) {
-	XRectangle r;
-
-	if(dc.font.set) {
-		XmbTextExtents(dc.font.set, text, len, NULL, &r);
-		return r.width;
-	}
-	return XTextWidth(dc.font.xfont, text, len);
-}
-
 static void
 drawsquare(Bool filled, Bool empty, unsigned long col[ColLast]) {
 	int x;
@@ -48,6 +37,17 @@
 	return False;
 }
 
+static unsigned int
+textnw(const char *text, unsigned int len) {
+	XRectangle r;
+
+	if(dc.font.set) {
+		XmbTextExtents(dc.font.set, text, len, NULL, &r);
+		return r.width;
+	}
+	return XTextWidth(dc.font.xfont, text, len);
+}
+
 /* extern */
 
 void