protected final void SizeChange(final int width, final int height) {
Scheduler.addAtFront(new Scheduler.Task() { public void perform() {
// dirty the place where the scar used to be
root.dirty(0, root.maxheight - Main.scarImage.height, Main.scarImage.width, Main.scarImage.height);
root.setMaxWidth(JS.N(width));
root.setMaxHeight(JS.N(height));
protected final void SizeChange(final int width, final int height) {
Scheduler.addAtFront(new Scheduler.Task() { public void perform() {
// dirty the place where the scar used to be
root.dirty(0, root.maxheight - Main.scarImage.height, Main.scarImage.width, Main.scarImage.height);
root.setMaxWidth(JS.N(width));
root.setMaxHeight(JS.N(height));