- int newwidth = Math.max(r.x - insets.left + r.width, root.width);
- int newheight = Math.max(r.y - insets.top + r.height, root.height);
- if (newwidth > root.width || newheight > root.height)
- componentResized(window.getWidth() - insets.left - insets.right,
- window.getHeight() - insets.top - insets.bottom);
-
- //Dirty(r.x - insets.left, r.y - insets.top, r.width, r.height);
- g = gr;
- blit(r.x - insets.left, r.y - insets.top, r.width, r.height);
- g.setClip(0, 0, getWidth(), getHeight());
+ int newwidth = Math.max(getWidth() - insets.left - insets.right, root.width);
+ int newheight = Math.max(getHeight() - insets.top - insets.bottom, root.height);
+ if (newwidth != root.width || newheight != root.height) componentResized(newwidth, newheight);