summaryrefslogtreecommitdiffstats
path: root/draw.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--draw.c24
1 files changed, 8 insertions, 16 deletions
diff --git a/draw.c b/draw.c
index b8b6c1d..e8ee08d 100644
--- a/draw.c
+++ b/draw.c
@@ -10,8 +10,7 @@
10/* static */ 10/* static */
11 11
12static unsigned int 12static unsigned int
13textnw(const char *text, unsigned int len) 13textnw(const char *text, unsigned int len) {
14{
15 XRectangle r; 14 XRectangle r;
16 15
17 if(dc.font.set) { 16 if(dc.font.set) {
@@ -22,8 +21,7 @@ textnw(const char *text, unsigned int len)
22} 21}
23 22
24static void 23static void
25drawtext(const char *text, unsigned long col[ColLast], Bool highlight) 24drawtext(const char *text, unsigned long col[ColLast], Bool highlight) {
26{
27 int x, y, w, h; 25 int x, y, w, h;
28 static char buf[256]; 26 static char buf[256];
29 unsigned int len, olen; 27 unsigned int len, olen;
@@ -82,8 +80,7 @@ drawtext(const char *text, unsigned long col[ColLast], Bool highlight)
82/* extern */ 80/* extern */
83 81
84void 82void
85drawall() 83drawall() {
86{
87 Client *c; 84 Client *c;
88 85
89 for(c = clients; c; c = getnext(c->next)) 86 for(c = clients; c; c = getnext(c->next))
@@ -92,8 +89,7 @@ drawall()
92} 89}
93 90
94void 91void
95drawstatus() 92drawstatus() {
96{
97 int i, x; 93 int i, x;
98 94
99 dc.x = dc.y = 0; 95 dc.x = dc.y = 0;
@@ -131,8 +127,7 @@ drawstatus()
131} 127}
132 128
133void 129void
134drawtitle(Client *c) 130drawtitle(Client *c) {
135{
136 if(c == sel && issel) { 131 if(c == sel && issel) {
137 drawstatus(); 132 drawstatus();
138 XUnmapWindow(dpy, c->twin); 133 XUnmapWindow(dpy, c->twin);
@@ -150,8 +145,7 @@ drawtitle(Client *c)
150} 145}
151 146
152unsigned long 147unsigned long
153getcolor(const char *colstr) 148getcolor(const char *colstr) {
154{
155 Colormap cmap = DefaultColormap(dpy, screen); 149 Colormap cmap = DefaultColormap(dpy, screen);
156 XColor color; 150 XColor color;
157 151
@@ -160,8 +154,7 @@ getcolor(const char *colstr)
160} 154}
161 155
162void 156void
163setfont(const char *fontstr) 157setfont(const char *fontstr) {
164{
165 char **missing, *def; 158 char **missing, *def;
166 int i, n; 159 int i, n;
167 160
@@ -211,7 +204,6 @@ setfont(const char *fontstr)
211} 204}
212 205
213unsigned int 206unsigned int
214textw(const char *text) 207textw(const char *text) {
215{
216 return textnw(text, strlen(text)) + dc.font.height; 208 return textnw(text, strlen(text)) + dc.font.height;
217} 209}