fixed order

This commit is contained in:
Anselm R. Garbe 2007-02-20 13:48:02 +01:00
parent e7508783e8
commit 138b7fbd05
1 changed files with 11 additions and 11 deletions

22
draw.c
View File

@ -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