move that composite around a bit

This commit is contained in:
benfry
2012-12-16 02:11:29 +00:00
parent 8a7a1669a3
commit e73ef5fbe9

View File

@@ -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