2003/08/12 10:03:22
[org.ibex.core.git] / src / org / xwt / Surface.java
index dba087e..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);
@@ -469,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() &&