fixed order
138b7fbd
1 file(s) · +11 −11
| 6 | 6 | ||
| 7 | 7 | /* static */ |
|
| 8 | 8 | ||
| 9 | - | static unsigned int |
|
| 10 | - | textnw(const char *text, unsigned int len) { |
|
| 11 | - | XRectangle r; |
|
| 12 | - | ||
| 13 | - | if(dc.font.set) { |
|
| 14 | - | XmbTextExtents(dc.font.set, text, len, NULL, &r); |
|
| 15 | - | return r.width; |
|
| 16 | - | } |
|
| 17 | - | return XTextWidth(dc.font.xfont, text, len); |
|
| 18 | - | } |
|
| 19 | - | ||
| 20 | 9 | static void |
|
| 21 | 10 | drawsquare(Bool filled, Bool empty, unsigned long col[ColLast]) { |
|
| 22 | 11 | int x; |
|
| 46 | 35 | if(c->tags[t]) |
|
| 47 | 36 | return True; |
|
| 48 | 37 | return False; |
|
| 38 | + | } |
|
| 39 | + | ||
| 40 | + | static unsigned int |
|
| 41 | + | textnw(const char *text, unsigned int len) { |
|
| 42 | + | XRectangle r; |
|
| 43 | + | ||
| 44 | + | if(dc.font.set) { |
|
| 45 | + | XmbTextExtents(dc.font.set, text, len, NULL, &r); |
|
| 46 | + | return r.width; |
|
| 47 | + | } |
|
| 48 | + | return XTextWidth(dc.font.xfont, text, len); |
|
| 49 | 49 | } |
|
| 50 | 50 | ||
| 51 | 51 | /* extern */ |
|