412 |
|
csm[0] = csm[1] = csm[2] = nc = 0; |
413 |
|
/* do leaves first */ |
414 |
|
for (i = 0; i < 4; i++) { |
415 |
– |
if (!(tp->flgs & CHF(i))) |
416 |
– |
continue; |
415 |
|
if (tp->flgs & LFF(i)) { |
416 |
< |
dev_paintr(cp=qtL.rgb[tp->k[i].li], |
419 |
< |
i&01 ? mx : x0, i&02 ? my : y0, |
420 |
< |
i&01 ? x1 : mx, i&02 ? y1 : my); |
416 |
> |
cp = qtL.rgb[tp->k[i].li]; |
417 |
|
csm[0] += cp[0]; csm[1] += cp[1]; csm[2] += cp[2]; |
418 |
|
nc++; |
419 |
< |
} else if (!(tp->flgs & BRF(i))) |
419 |
> |
if (tp->flgs & CHF(i)) |
420 |
> |
dev_paintr(cp, i&01 ? mx : x0, i&02 ? my : y0, |
421 |
> |
i&01 ? x1 : mx, i&02 ? y1 : my); |
422 |
> |
} else if ((tp->flgs & CHBRF(i)) == CHF(i)) |
423 |
|
gaps |= 1<<i; /* empty stem */ |
424 |
|
} |
425 |
|
/* now do branches */ |