X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fgraphics%2FSurface.java;h=b27fa615b9f39e5800684fdbd41e860d60044f32;hp=f891b29160c63d70864a55dd7357de976e09e7f7;hb=51935331706d01844ed596f0c7a77e2ff86d381e;hpb=098f2fd17df6500e8dad466c162c2e0589cc7df5 diff --git a/src/org/ibex/graphics/Surface.java b/src/org/ibex/graphics/Surface.java index f891b29..b27fa61 100644 --- a/src/org/ibex/graphics/Surface.java +++ b/src/org/ibex/graphics/Surface.java @@ -280,7 +280,7 @@ public abstract class Surface implements Callable { } while(abort); int[][] dirt = dirtyRegions.flush(); - + /* for(int i = 0; dirt != null && i < dirt.length; i++) { if (dirt[i] == null) continue; int x = dirt[i][0], y = dirt[i][1], w = dirt[i][2], h = dirt[i][3]; @@ -289,9 +289,11 @@ public abstract class Surface implements Callable { if (x+w > root.width) w = root.width - x; if (y+h > root.height) h = root.height - y; if (w <= 0 || h <= 0) continue; - + */ // FIXME: set clip to -- x, y, x + w, y + h, - root.render(this.getPixelBuffer(), identity); + System.out.println("paint"); + root.render(this.getPixelBuffer(), identity, null); + /* //getPixelBuffer().drawPicture(scarImage, 0, root.height - scarImage.height, x, y, x+w, y+h); if (abort) { @@ -304,6 +306,7 @@ public abstract class Surface implements Callable { return; } } + */ unrendered = false; } @@ -380,11 +383,11 @@ public abstract class Surface implements Callable { public void drawGlyph(Font.Glyph source, int dx, int dy, int cx1, int cy1, int cx2, int cy2, int argb, int bc) { } */ - public void stroke(Polygon p, int color) { + public void stroke(Mesh p, int color) { // FIXME } - public void fill(Polygon p, Paint paint) { + public void fill(Mesh p, Paint paint) { // FIXME }