diff --git a/app/src/processing/mode/java/preproc/PdePreprocessor.java b/app/src/processing/mode/java/preproc/PdePreprocessor.java index 0d87a1935..93b016fa4 100644 --- a/app/src/processing/mode/java/preproc/PdePreprocessor.java +++ b/app/src/processing/mode/java/preproc/PdePreprocessor.java @@ -679,9 +679,11 @@ public class PdePreprocessor { } else { out.print("\"" + PApplet.ARGS_HIDE_STOP + "\", "); } - } else { - String farbe = Preferences.get("run.window.bgcolor"); - out.print("\"" + PApplet.ARGS_BGCOLOR + "=" + farbe + "\", "); +// } else { +// // This is set initially based on the system control color, just +// // sets the color for what goes behind the sketch before it's added. +// String farbe = Preferences.get("run.window.bgcolor"); +// out.print("\"" + PApplet.ARGS_BGCOLOR + "=" + farbe + "\", "); } out.println("\"" + className + "\" });"); out.println(indent + "}"); diff --git a/build/macosx/jAppleMenuBar.url b/build/macosx/jAppleMenuBar.url new file mode 100644 index 000000000..62dc0f635 --- /dev/null +++ b/build/macosx/jAppleMenuBar.url @@ -0,0 +1,2 @@ +[InternetShortcut] +URL=https://github.com/kritzikratzi/jAppleMenuBar diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index 769cc5eb5..ef402fad5 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -9157,7 +9157,8 @@ public class PApplet extends Applet String name = null; boolean present = false; // boolean exclusive = false; - Color backgroundColor = Color.BLACK; +// Color backgroundColor = Color.BLACK; + Color backgroundColor = null; //Color.BLACK; Color stopColor = Color.GRAY; GraphicsDevice displayDevice = null; boolean hideStop = false; @@ -9323,7 +9324,9 @@ public class PApplet extends Applet } frame.setUndecorated(true); - frame.setBackground(backgroundColor); + if (backgroundColor != null) { + frame.setBackground(backgroundColor); + } // if (exclusive) { // displayDevice.setFullScreenWindow(frame); // // this trashes the location of the window on os x @@ -9450,11 +9453,13 @@ public class PApplet extends Applet frame.setLocation(frameLoc.x, 30); } - if (backgroundColor == Color.black) { //BLACK) { - // this means no bg color unless specified - backgroundColor = SystemColor.control; + if (backgroundColor != null) { +// if (backgroundColor == Color.black) { //BLACK) { +// // this means no bg color unless specified +// backgroundColor = SystemColor.control; +// } + frame.setBackground(backgroundColor); } - frame.setBackground(backgroundColor); int usableWindowH = windowH - insets.top - insets.bottom; applet.setBounds((windowW - applet.width)/2, diff --git a/core/todo.txt b/core/todo.txt index 90684c549..391dbbb02 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -5,6 +5,11 @@ X also add support for printing arrays of longs (doubles were already there) _ look into using BufferStrategy again to improve performance _ there are more improvements to be made ala issue #729 +_ make sure rendering is happening on the EDT +_ (hopefully fixes flicker issues) +_ change PApplet.java javadoc to reflect the change +_ Update http://wiki.processing.org/w/Troubleshooting#Flicker +_ http://code.google.com/p/processing/issues/detail?id=775 sort out full screen issues X make screenWidth and screenHeight work properly with multiple screens @@ -46,20 +51,15 @@ X just too problematic and buggy to get this to work perfectly X default is that full screen app doesn't cover multiple displays X this is fine since opengl can't usually go across both o but include an example for how to use full in gl -X screenX and screenY are both already taken, so not including vars for them - +_ screenX and screenY are both already taken, so not including vars for them +_ decide on naming for the next release +_ wiki.processing.org/w/Window_Size_and_Full_Screen _ static mode sketches seem to break ESC... noLoop() problem? _ PUtil -> move match(), lots of other non-gui functions into own class _ and merge it in statically via the methods code -_ make sure rendering is happening on the EDT -_ (hopefully fixes flicker issues) -_ change PApplet.java javadoc to reflect the change -_ Update http://wiki.processing.org/w/Troubleshooting#Flicker -_ http://code.google.com/p/processing/issues/detail?id=775 - _ memory leak when many createGraphics(..., JAVA2D) calls are used _ http://code.google.com/p/processing/issues/detail?id=507 _ need to add clear() method so clear out ARGB surfaces diff --git a/todo.txt b/todo.txt index 01c3b893b..0f6efd500 100644 --- a/todo.txt +++ b/todo.txt @@ -9,7 +9,10 @@ X this applies to any applet that's run externally currently (verify) X make it also work with anything that's run inside of p5 itself X this means changing the frame creation code inside Runner X check current present code with multiple monitors -_ --bgcolor shouldn't be in main() unless 'present' is turned on +X --bgcolor shouldn't be in main() unless 'present' is turned on +o actually it should, it controls the window color +X nah, take it out. why the complexity... +X if no window color set, then don't apply it o also add option for FSEM or not X nope, FSEM too buggy and error-prone