aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-02-20 13:48:02 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-02-20 13:48:02 +0100
commit138b7fbd0563e176e4f4dce8ac771263f74ff6cb (patch)
tree709f6944d63930c44cb8e613969601a8d7c4ce5f
parente7508783e85aba0ce4ab09b0dd76c40342113aed (diff)
downloaddwm-138b7fbd0563e176e4f4dce8ac771263f74ff6cb.tar.gz
fixed order
-rw-r--r--draw.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/draw.c b/draw.c
index 25b08c6..8369082 100644
--- a/draw.c
+++ b/draw.c
@@ -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 @@ isoccupied(unsigned int t) {
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