draw.c
changeset 261 d6fd632d861c
parent 257 32dc3acfffc0
child 262 d659a2dce2b5
equal deleted inserted replaced
260:243bf6783c7c 261:d6fd632d861c
   107 	dc.w = 0;
   107 	dc.w = 0;
   108 	for(i = 0; i < ntags; i++) {
   108 	for(i = 0; i < ntags; i++) {
   109 		dc.x += dc.w;
   109 		dc.x += dc.w;
   110 		dc.w = textw(tags[i]);
   110 		dc.w = textw(tags[i]);
   111 		if(istile)
   111 		if(istile)
   112 			drawtext(tags[i], (i == tsel));
   112 			drawtext(tags[i], tsel[i]);
   113 		else
   113 		else
   114 			drawtext(tags[i], (i != tsel));
   114 			drawtext(tags[i], !tsel[i]);
   115 	}
   115 	}
   116 	x = dc.x + dc.w;
   116 	x = dc.x + dc.w;
   117 	dc.w = textw(stext);
   117 	dc.w = textw(stext);
   118 	dc.x = bx + bw - dc.w;
   118 	dc.x = bx + bw - dc.w;
   119 	drawtext(stext, !istile);
   119 	drawtext(stext, !istile);