From 51935331706d01844ed596f0c7a77e2ff86d381e Mon Sep 17 00:00:00 2001 From: adam Date: Sat, 2 Jul 2005 10:04:54 +0000 Subject: [PATCH] disabled old-style dirty buffer handling in Surface.java darcs-hash:20050702100454-5007d-e5a96f1dbdd1e0dfe424413646a0b0db568e4f2f.gz --- src/org/ibex/graphics/Surface.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/org/ibex/graphics/Surface.java b/src/org/ibex/graphics/Surface.java index 5be6c43..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; } -- 1.7.10.4