From 281d908b5e6bc9bb8fcbc106d61e38f1fc2ec322 Mon Sep 17 00:00:00 2001 From: benfry Date: Sun, 1 May 2005 23:58:39 +0000 Subject: [PATCH] confirmed full screen problems on osx 10.2 --- core/PApplet.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/PApplet.java b/core/PApplet.java index 62033d426..23398fed8 100644 --- a/core/PApplet.java +++ b/core/PApplet.java @@ -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");