- if (root.width != width || root.height != height) {
- root.dirty(0, root.height - Main.scarImage.getHeight(), Main.scarImage.getWidth(), Main.scarImage.getHeight());
- root.width = Math.max(Main.scarImage.getWidth(), width);
- root.height = Math.max(Main.scarImage.getHeight(), height);
- }
- if (root.width > 0 && root.height > 0 && platform_window_width != root.width && platform_window_height != root.height)
- _setSize(root.width, root.height);
+ if (this.width == width && this.height == height) return;
+ this.width = Math.max(Main.scarImage.getWidth(), width);
+ this.height = Math.max(Main.scarImage.getHeight(), height);
+ _setSize(width, height);