Mercurial > 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 wrap: on
line diff
--- a/draw.c Thu Aug 03 11:38:26 2006 +0200 +++ b/draw.c Thu Aug 03 12:12:26 2006 +0200 @@ -114,7 +114,7 @@ drawtext(NULL, !istile, False); dc.w = 0; - for(i = 0; i < TLast; i++) { + for(i = 0; i < ntags; i++) { dc.x += dc.w; dc.w = textw(tags[i]); if(istile) @@ -153,7 +153,7 @@ dc.x = dc.y = 0; dc.w = 0; - for(i = 0; i < TLast; i++) { + for(i = 0; i < ntags; i++) { if(c->tags[i]) { dc.x += dc.w; dc.w = textw(tags[i]);