From f2ed3bd63eea5cd77b780341e89ca9b8d92eb061 Mon Sep 17 00:00:00 2001 From: benfry Date: Sun, 2 Dec 2012 13:22:24 +0000 Subject: [PATCH] disable Quartz rendering on OS X to fix compositing problem --- build/shared/revisions.txt | 7 +++++++ core/src/processing/core/PApplet.java | 5 +++-- core/todo.txt | 2 ++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/build/shared/revisions.txt b/build/shared/revisions.txt index 2dc8541ed..c5a92fc10 100644 --- a/build/shared/revisions.txt +++ b/build/shared/revisions.txt @@ -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. diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java index 936233f90..8ab611d17 100644 --- a/core/src/processing/core/PApplet.java +++ b/core/src/processing/core/PApplet.java @@ -219,7 +219,7 @@ public class PApplet extends Applet * change this setting before you call PApplet.main(). *
    * static public void main(String[] args) {
-   *   PApplet.useQuartz = "false";
+   *   PApplet.useQuartz = false;
    *   PApplet.main(new String[] { "YourSketch" });
    * }
    * 
@@ -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. diff --git a/core/todo.txt b/core/todo.txt index 77657c179..4f0d5f0db 100644 --- a/core/todo.txt +++ b/core/todo.txt @@ -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