comparison draw.c @ 57:f005d46462e8

implemented bar for dwm (I miss status text), I plan that status text is read from stdin in dwm
author Anselm R. Garbe <garbeam@wmii.de>
date Fri, 14 Jul 2006 10:07:38 +0200
parents 989178822938
children 50450aa24a46
comparison
equal deleted inserted replaced
56:b72b7086c385 57:f005d46462e8
28 points[4].y = -(dc.h - 1); 28 points[4].y = -(dc.h - 1);
29 XDrawLines(dpy, dc.drawable, dc.gc, points, 5, CoordModePrevious); 29 XDrawLines(dpy, dc.drawable, dc.gc, points, 5, CoordModePrevious);
30 } 30 }
31 31
32 void 32 void
33 draw(Bool border, const char *text) 33 drawtext(const char *text, Bool border)
34 { 34 {
35 int x, y, w, h; 35 int x, y, w, h;
36 unsigned int len; 36 unsigned int len;
37 static char buf[256]; 37 static char buf[256];
38 XGCValues gcv; 38 XGCValues gcv;