aewl

diff draw.c @ 357:27082985e51e

removed a bunch of lines, made mode symbols configurable
author Anselm R. Garbe <arg@10kloc.org>
date Fri, 25 Aug 2006 15:12:32 +0200
parents c2a65784cb71
children 64c19db8af25
line diff
     1.1 --- a/draw.c	Fri Aug 25 15:06:38 2006 +0200
     1.2 +++ b/draw.c	Fri Aug 25 15:12:32 2006 +0200
     1.3 @@ -94,18 +94,13 @@
     1.4  void
     1.5  drawstatus()
     1.6  {
     1.7 -	static const char *mode[] = { "><", "|=" };
     1.8  	int i, x;
     1.9  
    1.10  	dc.x = dc.y = 0;
    1.11  	dc.w = bw;
    1.12  
    1.13 -	if(!modew)
    1.14 -		modew = textw(mode[0]) > textw(mode[1]) ? textw(mode[0]) : textw(mode[1]);
    1.15 -	drawtext(mode[arrange == dotile ? 1 : 0], dc.status, False);
    1.16 -
    1.17 -	dc.w = 0;
    1.18 -	dc.x = modew;
    1.19 +	drawtext(arrange == dotile ? TILEDSYMBOL : FLOATSYMBOL, dc.status, False);
    1.20 +	dc.w = modew;
    1.21  	for(i = 0; i < ntags; i++) {
    1.22  		dc.x += dc.w;
    1.23  		dc.w = textw(tags[i]);