Xinqi Bao's Git
projects
/
dwm.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
e750878
)
fixed order
author
Anselm R. Garbe <
[email protected]
>
Tue, 20 Feb 2007 12:48:02 +0000
(13:48 +0100)
committer
Anselm R. Garbe <
[email protected]
>
Tue, 20 Feb 2007 12:48:02 +0000
(13:48 +0100)
draw.c
patch
|
blob
|
history
diff --git
a/draw.c
b/draw.c
index
25b08c6
..
8369082
100644
(file)
--- a/
draw.c
+++ b/
draw.c
@@
-6,17
+6,6
@@
/* static */
/* 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;
static void
drawsquare(Bool filled, Bool empty, unsigned long col[ColLast]) {
int x;
@@
-48,6
+37,17
@@
isoccupied(unsigned int t) {
return False;
}
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
/* extern */
void