dwm-meillo
diff draw.c @ 461:9d23330a5268
removed a bunch of lines through making function signatures more consistent with my style ( { does not belong to a new line, if function args are single-lined)
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Tue, 12 Sep 2006 10:57:28 +0200 |
parents | b1159a638d0a |
children | 8d564b9e3cd4 |
line diff
1.1 --- a/draw.c Tue Sep 12 09:50:06 2006 +0200 1.2 +++ b/draw.c Tue Sep 12 10:57:28 2006 +0200 1.3 @@ -10,8 +10,7 @@ 1.4 /* static */ 1.5 1.6 static unsigned int 1.7 -textnw(const char *text, unsigned int len) 1.8 -{ 1.9 +textnw(const char *text, unsigned int len) { 1.10 XRectangle r; 1.11 1.12 if(dc.font.set) { 1.13 @@ -22,8 +21,7 @@ 1.14 } 1.15 1.16 static void 1.17 -drawtext(const char *text, unsigned long col[ColLast], Bool highlight) 1.18 -{ 1.19 +drawtext(const char *text, unsigned long col[ColLast], Bool highlight) { 1.20 int x, y, w, h; 1.21 static char buf[256]; 1.22 unsigned int len, olen; 1.23 @@ -82,8 +80,7 @@ 1.24 /* extern */ 1.25 1.26 void 1.27 -drawall() 1.28 -{ 1.29 +drawall() { 1.30 Client *c; 1.31 1.32 for(c = clients; c; c = getnext(c->next)) 1.33 @@ -92,8 +89,7 @@ 1.34 } 1.35 1.36 void 1.37 -drawstatus() 1.38 -{ 1.39 +drawstatus() { 1.40 int i, x; 1.41 1.42 dc.x = dc.y = 0; 1.43 @@ -131,8 +127,7 @@ 1.44 } 1.45 1.46 void 1.47 -drawtitle(Client *c) 1.48 -{ 1.49 +drawtitle(Client *c) { 1.50 if(c == sel && issel) { 1.51 drawstatus(); 1.52 XUnmapWindow(dpy, c->twin); 1.53 @@ -150,8 +145,7 @@ 1.54 } 1.55 1.56 unsigned long 1.57 -getcolor(const char *colstr) 1.58 -{ 1.59 +getcolor(const char *colstr) { 1.60 Colormap cmap = DefaultColormap(dpy, screen); 1.61 XColor color; 1.62 1.63 @@ -160,8 +154,7 @@ 1.64 } 1.65 1.66 void 1.67 -setfont(const char *fontstr) 1.68 -{ 1.69 +setfont(const char *fontstr) { 1.70 char **missing, *def; 1.71 int i, n; 1.72 1.73 @@ -211,7 +204,6 @@ 1.74 } 1.75 1.76 unsigned int 1.77 -textw(const char *text) 1.78 -{ 1.79 +textw(const char *text) { 1.80 return textnw(text, strlen(text)) + dc.font.height; 1.81 }