X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=inline;f=src%2Forg%2Fibex%2Fcore%2FBox.java;fp=src%2Forg%2Fibex%2Fcore%2FBox.java;h=396a2b664d54fa0d4b5740442f62940ac3834f7c;hb=559d1e3e071d2204c05c91f36a9349e57a7e7a91;hp=595e10102263dfee52d12bd9c630c6b82d3d2963;hpb=c93b6c2e62a21de425ceff3ec9e4a5264e73142c;p=org.ibex.core.git diff --git a/src/org/ibex/core/Box.java b/src/org/ibex/core/Box.java index 595e101..396a2b6 100644 --- a/src/org/ibex/core/Box.java +++ b/src/org/ibex/core/Box.java @@ -247,10 +247,13 @@ public final class Box extends JS.Obj implements Callable, Mesh.Chain { return; } + // FIXME: mesh clipping code has been getting stuck in loops; to see this, + // uncomment the next two lines and swap the order of the last two lines. + //if (clipFrom != null) clipFrom.subtract(mesh, clipa); - Mesh mesh = treeSize() > 0 ? this.mesh.copy() : this.mesh; - for(Box b = getChild(0); b != null; b = b.nextSibling()) b.render(buf, a, mesh, Affine.identity()); + //Mesh mesh = treeSize() > 0 ? this.mesh.copy() : this.mesh; mesh.fill(buf, a, null, fillcolor, true); + for(Box b = getChild(0); b != null; b = b.nextSibling()) b.render(buf, a, mesh, Affine.identity()); } // Methods to implement org.ibex.js.JS //////////////////////////////////////