mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 13:49:18 +01:00
move that composite around a bit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user