From 53b81e839d264d8cecdaf11bf9fae5579cc50e2c Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 14 Feb 2005 04:30:00 +0000 Subject: [PATCH] added calls from Box to Mesh darcs-hash:20050214043000-5007d-437ab518bf33a66c9a3b801ff0a746bc28b61f36.gz --- src/org/ibex/core/Box.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/org/ibex/core/Box.java b/src/org/ibex/core/Box.java index 9f5aac7..b68480f 100644 --- a/src/org/ibex/core/Box.java +++ b/src/org/ibex/core/Box.java @@ -69,6 +69,7 @@ public final class Box extends JS.Obj implements Callable { // FEATURE: polygon caching private Polygon polygon = null; + private Mesh mesh = null; // specified directly by user public int minwidth = 0; @@ -243,9 +244,10 @@ public final class Box extends JS.Obj implements Callable { } // FIXME: texture } else { - Polygon p = new Polygon(path, a); - p.fill(buf, new Paint.SingleColorPaint(fillcolor)); - p.stroke(buf, strokecolor); + if (mesh == null) mesh = new Mesh(new Polygon(path, Affine.identity())); + mesh.fill(buf, a, fillcolor, true, false); + mesh.stroke(buf, a, strokecolor); + //mesh.fill(buf, a, fillcolor, true, true); } for(Box b = getChild(0); b != null; b = b.nextSibling()) b.render(buf, a); -- 1.7.10.4