diff options
Diffstat (limited to '')
| -rw-r--r-- | draw.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -30,7 +30,7 @@ textnw(const char *text, unsigned int len) { | |||
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | static void | 32 | static void |
| 33 | drawtext(const char *text, unsigned long col[ColLast], Bool filleddot, Bool emptydot) { | 33 | drawtext(const char *text, unsigned long col[ColLast], Bool filledsquare, Bool emptysquare) { |
| 34 | int x, y, w, h; | 34 | int x, y, w, h; |
| 35 | static char buf[256]; | 35 | static char buf[256]; |
| 36 | unsigned int len, olen; | 36 | unsigned int len, olen; |
| @@ -75,13 +75,13 @@ drawtext(const char *text, unsigned long col[ColLast], Bool filleddot, Bool empt | |||
| 75 | XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len); | 75 | XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len); |
| 76 | } | 76 | } |
| 77 | x = (h + 2) / 4; | 77 | x = (h + 2) / 4; |
| 78 | if(filleddot) { | 78 | if(filledsquare) { |
| 79 | r.x = dc.x + 2; | 79 | r.x = dc.x + 2; |
| 80 | r.y = dc.y + 2; | 80 | r.y = dc.y + 2; |
| 81 | r.width = r.height = x; | 81 | r.width = r.height = x; |
| 82 | XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1); | 82 | XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1); |
| 83 | } | 83 | } |
| 84 | if(emptydot) { | 84 | else if(emptysquare) { |
| 85 | pt[0].x = dc.x + 2; | 85 | pt[0].x = dc.x + 2; |
| 86 | pt[0].y = dc.y + 2; | 86 | pt[0].y = dc.y + 2; |
| 87 | pt[1].x = x; | 87 | pt[1].x = x; |
