about summary refs log tree commit diff stats
path: root/draw.c
diff options
context:
space:
mode:
authorarg@10ksloc.org <unknown>2006-08-07 13:54:59 +0200
committerarg@10ksloc.org <unknown>2006-08-07 13:54:59 +0200
commit4250c26e9b406dd5963a6e9a9b4b33e64ff9c861 (patch)
tree79579fbb5fb682aebe09b9de6d20aa3e8c0753d5 /draw.c
parente48de30516d5a0400b27a0d6bfeb1b9181e8ebf5 (diff)
downloaddwm-4250c26e9b406dd5963a6e9a9b4b33e64ff9c861.tar.gz
changed signature of drawtext
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/draw.c b/draw.c
index 16f934d..5d19bfb 100644
--- a/draw.c
+++ b/draw.c
@@ -42,7 +42,7 @@ textnw(const char *text, unsigned int len)
 }
 
 static void
-drawtext(const char *text, Bool invert, Bool border)
+drawtext(const char *text, Bool invert)
 {
 	int x, y, w, h;
 	static char buf[256];
@@ -52,14 +52,12 @@ drawtext(const char *text, Bool invert, Bool border)
 
 	XSetForeground(dpy, dc.gc, invert ? dc.fg : dc.bg);
 	XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1);
-
-	w = 0;
-	if(border)
-		drawborder();
+	drawborder();
 
 	if(!text)
 		return;
 
+	w = 0;
 	len = strlen(text);
 	if(len >= sizeof(buf))
 		len = sizeof(buf) - 1;
@@ -111,24 +109,24 @@ drawstatus()
 
 	dc.x = dc.y = 0;
 	dc.w = bw;
-	drawtext(NULL, !istile, False);
+	drawtext(NULL, !istile);
 
 	dc.w = 0;
 	for(i = 0; i < ntags; i++) {
 		dc.x += dc.w;
 		dc.w = textw(tags[i]);
 		if(istile)
-			drawtext(tags[i], (i == tsel), True);
+			drawtext(tags[i], (i == tsel));
 		else
-			drawtext(tags[i], (i != tsel), True);
+			drawtext(tags[i], (i != tsel));
 	}
 	x = dc.x + dc.w;
 	dc.w = textw(stext);
 	dc.x = bx + bw - dc.w;
-	drawtext(stext, !istile, True);
+	drawtext(stext, !istile);
 	if(sel && ((dc.w = dc.x - x) >= bh)) {
 		dc.x = x;
-		drawtext(sel->name, istile, True);
+		drawtext(sel->name, istile);
 	}
 	XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0);
 	XSync(dpy, False);
@@ -157,12 +155,12 @@ drawtitle(Client *c)
 		if(c->tags[i]) {
 			dc.x += dc.w;
 			dc.w = textw(tags[i]);
-			drawtext(tags[i], !istile, True);
+			drawtext(tags[i], !istile);
 		}
 	}
 	dc.x += dc.w;
 	dc.w = textw(c->name);
-	drawtext(c->name, !istile, True);
+	drawtext(c->name, !istile);
 	XCopyArea(dpy, dc.drawable, c->title, dc.gc, 0, 0, c->tw, c->th, 0, 0);
 	XSync(dpy, False);
 }
a> ^
8f698bd ^

adaa28a ^
dc5d967 ^
adaa28a ^


849e631 ^
adaa28a ^


c47da14 ^
439e15d ^
9955ddc ^
dc5d967 ^
9955ddc ^



439e15d ^




16c67f3 ^
9955ddc ^

439e15d ^

0464e42 ^
439e15d ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65