mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 09:39:19 +01:00
confirmed full screen problems on osx 10.2
This commit is contained in:
@@ -5261,6 +5261,7 @@ v PApplet.this.stop();
|
||||
//GraphicsConfiguration gc = displayDevice.getDefaultConfiguration();
|
||||
//frame = new Frame(gc);
|
||||
frame = new Frame(displayDevice.getDefaultConfiguration());
|
||||
println(displayDevice.getDefaultConfiguration());
|
||||
} else {
|
||||
frame = new Frame();
|
||||
}
|
||||
@@ -5292,13 +5293,16 @@ v PApplet.this.stop();
|
||||
if (present) {
|
||||
frame.setUndecorated(true);
|
||||
frame.setBackground(presentColor);
|
||||
//println("background color should be " + presentColor);
|
||||
displayDevice.setFullScreenWindow(frame);
|
||||
|
||||
frame.add(applet);
|
||||
Dimension fullscreen = frame.getSize();
|
||||
//System.out.println("frame size is " + fullscreen);
|
||||
applet.setBounds((fullscreen.width - applet.width) / 2,
|
||||
(fullscreen.height - applet.height) / 2,
|
||||
applet.width, applet.height);
|
||||
//println("applet bounds now " + applet.getBounds());
|
||||
|
||||
if (external) {
|
||||
Label label = new Label("stop");
|
||||
|
||||
Reference in New Issue
Block a user