From 3e72e5e676107f60a3420cf4c228f2a261634e99 Mon Sep 17 00:00:00 2001 From: Patrick Vares Date: Sun, 18 Jan 2015 01:22:20 -0500 Subject: [PATCH] reset PSurfaceAWT to what it was --- core/src/processing/core/PSurfaceAWT.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/core/src/processing/core/PSurfaceAWT.java b/core/src/processing/core/PSurfaceAWT.java index c5c6c0c23..cb56381b2 100644 --- a/core/src/processing/core/PSurfaceAWT.java +++ b/core/src/processing/core/PSurfaceAWT.java @@ -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); } -} \ No newline at end of file +}