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 //////////////////////////////////////
if (w <= 0 || h <= 0) continue;
*/
// FIXME: set clip to -- x, y, x + w, y + h,
- System.out.println("paint");
+
root.render(this.getPixelBuffer(), identity, null);
/*
//getPixelBuffer().drawPicture(scarImage, 0, root.height - scarImage.height, x, y, x+w, y+h);