From aa471f2d65688f8cf4944c073ff05224bfac8a9c Mon Sep 17 00:00:00 2001 From: Anselm R. Garbe Date: Fri, 25 Aug 2006 15:12:32 +0200 Subject: removed a bunch of lines, made mode symbols configurable --- draw.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'draw.c') diff --git a/draw.c b/draw.c index fb4ba2e..d32e888 100644 --- a/draw.c +++ b/draw.c @@ -94,18 +94,13 @@ drawall() void drawstatus() { - static const char *mode[] = { "><", "|=" }; int i, x; dc.x = dc.y = 0; dc.w = bw; - if(!modew) - modew = textw(mode[0]) > textw(mode[1]) ? textw(mode[0]) : textw(mode[1]); - drawtext(mode[arrange == dotile ? 1 : 0], dc.status, False); - - dc.w = 0; - dc.x = modew; + drawtext(arrange == dotile ? TILEDSYMBOL : FLOATSYMBOL, dc.status, False); + dc.w = modew; for(i = 0; i < ntags; i++) { dc.x += dc.w; dc.w = textw(tags[i]); -- cgit v1.2.3