diff options
Diffstat (limited to '')
| -rw-r--r-- | draw.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -30,7 +30,7 @@ drawborder(void) | |||
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | static unsigned int | 32 | static unsigned int |
| 33 | textnw(char *text, unsigned int len) | 33 | textnw(const char *text, unsigned int len) |
| 34 | { | 34 | { |
| 35 | XRectangle r; | 35 | XRectangle r; |
| 36 | 36 | ||
| @@ -156,8 +156,8 @@ drawtitle(Client *c) | |||
| 156 | for(i = 0; i < TLast; i++) { | 156 | for(i = 0; i < TLast; i++) { |
| 157 | if(c->tags[i]) { | 157 | if(c->tags[i]) { |
| 158 | dc.x += dc.w; | 158 | dc.x += dc.w; |
| 159 | dc.w = textw(c->tags[i]); | 159 | dc.w = textw(tags[i]); |
| 160 | drawtext(c->tags[i], !istile, True); | 160 | drawtext(tags[i], !istile, True); |
| 161 | } | 161 | } |
| 162 | } | 162 | } |
| 163 | dc.x += dc.w; | 163 | dc.x += dc.w; |
| @@ -229,7 +229,7 @@ setfont(const char *fontstr) | |||
| 229 | } | 229 | } |
| 230 | 230 | ||
| 231 | unsigned int | 231 | unsigned int |
| 232 | textw(char *text) | 232 | textw(const char *text) |
| 233 | { | 233 | { |
| 234 | return textnw(text, strlen(text)) + dc.font.height; | 234 | return textnw(text, strlen(text)) + dc.font.height; |
| 235 | } | 235 | } |
