disable Quartz rendering on OS X to fix compositing problem

This commit is contained in:
benfry
2012-12-02 13:22:24 +00:00
parent 6b53054d01
commit f2ed3bd63e
3 changed files with 12 additions and 2 deletions

View File

@@ -84,6 +84,13 @@ PROCESSING 2.0b7 (REV 0215) - 25 November 2012
+ Change output from processing-java to be UTF-8 encoded.
http://code.google.com/p/processing/issues/detail?id=1418
+ Disable Quartz renderer to fix line blending problem on OS X.
This older renderer was faster but had some bugs, like one that
caused lines to composite incorrectly when alpha was used.
Add "PApplet.useQuartz = true;" into your PApplet.main()
function to switch back to the old method:
http://processing.googlecode.com/svn/trunk/processing/build/javadoc/core/processing/core/PApplet.html#useQuartz
[ bug fixes ]
+ mouseButton not being set properly in mouseClicked.

View File

@@ -219,7 +219,7 @@ public class PApplet extends Applet
* change this setting before you call PApplet.main().
* <pre>
* static public void main(String[] args) {
* PApplet.useQuartz = "false";
* PApplet.useQuartz = false;
* PApplet.main(new String[] { "YourSketch" });
* }
* </pre>
@@ -227,7 +227,8 @@ public class PApplet extends Applet
* it's such a terrible hack in how it's employed here. Calling setProperty()
* inside setup() is a joke, since it's long since the AWT has been invoked.
*/
static public boolean useQuartz = true;
// static public boolean useQuartz = true;
static public boolean useQuartz = false;
/**
* Whether to use native (AWT) dialogs for selectInput and selectOutput.

View File

@@ -88,6 +88,8 @@ X using com.sun.image.codec.jpeg.* in PImage causes problems with OpenJDK
X http://code.google.com/p/processing/issues/detail?id=1424
X fix problem with background() and the default composite (for Casey)
X also store the default composite instance and use that on blendMode(BLEND)
X disable Quartz renderer to fix line blending problem from Casey
X might make sketches run more slowly
_ implement mousePressed(Event) etc
_ better to do this instead of bringing back the magic event