X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FSurface.java;h=e2e18836e45068a10af4d795842c979963cef417;hb=fea7f27cc252c8feaafb8a5c0d4b9f391f03975d;hp=58339c86f7959ba34da198f95a76c7a47cda149b;hpb=c9f6b3dd256396e17df86a371a27baa794c534ce;p=org.ibex.core.git diff --git a/src/org/xwt/Surface.java b/src/org/xwt/Surface.java index 58339c8..e2e1883 100644 --- a/src/org/xwt/Surface.java +++ b/src/org/xwt/Surface.java @@ -287,7 +287,7 @@ public abstract class Surface { long lastResizeTime = (((long)lastResizeTimeTop) << 32) | (long)lastResizeTimeBottom; if (Platform.supressDirtyOnResize() && System.currentTimeMillis() - lastResizeTime < 100 && (w >= width - 1 || h >= height - 1)) return; screenDirtyRegions.dirty(x, y, w, h); - blitDirtyScreenRegions(); + Refresh(); } @@ -305,12 +305,6 @@ public abstract class Surface { /** A list of all the Boxes on this Surface that should be notified of keyboard events */ Vec keywatchers = new Vec(); - /** - * this is incremented every time we render; it acts as a sort of 'timestamp' to let Boxes to know if they have - * been dirtied since the last rendering began (and hence should not propagate up dirty() requests from their children) - */ - volatile int dirtiedTimeStamp = 0; - /** When set to true, render() should abort as soon as possible and restart the rendering process */ volatile boolean abort = false; @@ -394,8 +388,6 @@ public abstract class Surface { /** runs the prerender() and render() pipelines in the root Box to regenerate the backbuffer, then blits it to the screen */ public synchronized void render() { - if (++dirtiedTimeStamp == Integer.MAX_VALUE - 1) dirtiedTimeStamp = 0; - // if the window size changed as a result of a user action, we have to update the root box's size if (root.size(0) != width || root.size(1) != height) {