reset PSurfaceAWT to what it was

This commit is contained in:
Patrick Vares
2015-01-18 01:22:20 -05:00
parent 122ad67158
commit 3e72e5e676
+4 -6
View File
@@ -831,12 +831,10 @@ public class PSurfaceAWT implements PSurface {
// canvas.setSize(wide, high);
// frame.setSize(wide, high);
setFrameSize(); //wide, high);
if (frame != null) {
frame.setLocationRelativeTo(null);
}
setCanvasSize();
frame.setLocationRelativeTo(null);
// if (frame != null) {
// frame.setLocationRelativeTo(null);
// }
GraphicsConfiguration gc = canvas.getGraphicsConfiguration();
// If not realized (off-screen, i.e the Color Selector Tool), gc will be null.
@@ -1540,4 +1538,4 @@ public class PSurfaceAWT implements PSurface {
void debug(String format, Object ... args) {
System.out.format(format + "%n", args);
}
}
}