mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
reset PSurfaceAWT to what it was
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user