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);
/** 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();
}
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() &&