aewl

diff draw.c @ 178:e848966a1ac6

removed TLast tag enum, now tags is simple defined as char *[] array, the rest is calculated correctly, rules take an int array for the tags
author arg@10ksloc.org
date Thu, 03 Aug 2006 12:12:26 +0200
parents 1db04019684e
children e4bfe46c7910
line diff
     1.1 --- a/draw.c	Thu Aug 03 11:38:26 2006 +0200
     1.2 +++ b/draw.c	Thu Aug 03 12:12:26 2006 +0200
     1.3 @@ -114,7 +114,7 @@
     1.4  	drawtext(NULL, !istile, False);
     1.5  
     1.6  	dc.w = 0;
     1.7 -	for(i = 0; i < TLast; i++) {
     1.8 +	for(i = 0; i < ntags; i++) {
     1.9  		dc.x += dc.w;
    1.10  		dc.w = textw(tags[i]);
    1.11  		if(istile)
    1.12 @@ -153,7 +153,7 @@
    1.13  	dc.x = dc.y = 0;
    1.14  
    1.15  	dc.w = 0;
    1.16 -	for(i = 0; i < TLast; i++) {
    1.17 +	for(i = 0; i < ntags; i++) {
    1.18  		if(c->tags[i]) {
    1.19  			dc.x += dc.w;
    1.20  			dc.w = textw(tags[i]);