From e73ef5fbe96f185328102bfe7108f81ef606ca64 Mon Sep 17 00:00:00 2001 From: benfry Date: Sun, 16 Dec 2012 02:11:29 +0000 Subject: [PATCH] move that composite around a bit --- core/src/processing/core/PGraphicsJava2D.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/processing/core/PGraphicsJava2D.java b/core/src/processing/core/PGraphicsJava2D.java index 38be7ae53..0f3b209a8 100644 --- a/core/src/processing/core/PGraphicsJava2D.java +++ b/core/src/processing/core/PGraphicsJava2D.java @@ -187,7 +187,9 @@ public class PGraphicsJava2D extends PGraphics /*PGraphics2D*/ { image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); g2 = (Graphics2D) image.getGraphics(); } -// defaultComposite = g2.getComposite(); + if (!useCanvas) { + defaultComposite = g2.getComposite(); + } // can't un-set this because this may be only a resize // http://dev.processing.org/bugs/show_bug.cgi?id=463 @@ -249,11 +251,9 @@ public class PGraphicsJava2D extends PGraphics /*PGraphics2D*/ { bimage = gc.createCompatibleImage(width, height); // image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); g2 = bimage.createGraphics(); + defaultComposite = g2.getComposite(); } } - if (parent.frameCount == 0) { - defaultComposite = g2.getComposite(); - } checkSettings(); resetMatrix(); // reset model matrix