2003/08/12 09:59:55
[org.ibex.core.git] / src / org / xwt / Surface.java
index 082bb8b..68bbdde 100644 (file)
@@ -278,6 +278,9 @@ public abstract class Surface {
     protected final void SizeChange(int width, int height) {
         this.width = width;
         this.height = height;
+        root.width = width;
+        root.height = height;
+        root.needs_reflow = true;
         abort = true;
         long lastResizeTime = System.currentTimeMillis();
         lastResizeTimeTop = (int)(lastResizeTime >> 32);
@@ -388,7 +391,6 @@ public abstract class Surface {
 
     /** Indicates that the backbuffer region x,y,w,h is no longer correct and must be regenerated */
     public void dirty(int x, int y, int w, int h) {
-        x = 0; y = 0; w = 1000; h = 1000;
         backbufferDirtyRegions.dirty(x, y, w, h);
         Refresh();
     }
@@ -470,7 +472,7 @@ public abstract class Surface {
             if (y+h > height) h = height - y;
             if (w <= 0 || h <= 0) continue;
 
-            root.render(x, y, w, h, backbuffer);
+            root.render(0, 0, x, y, w, h, backbuffer);
             
             // if any area under the scar was repainted, rescar that area
             if (scarred && x < hscar + scarPicture.getWidth() &&