int y1 = max(y, pos(1) + bh);
int x2 = min(x + w, pos(0) + size(0) - bw);
int y2 = min(y + h, pos(1) + size(1) - bh);
- buf.setClip(0, 0, buf.getWidth(), buf.getHeight());
if (y2 - y1 > 0 && x2 - x1 > 0)
buf.fillRect(x1,y1,x2,y2,(color & 0xFF000000) != 0 ? color : SpecialBoxProperty.lightGray);
}