mirror of
https://github.com/processing/processing4.git
synced 2026-02-15 03:15:40 +01:00
pixelDensity (Java2D): set default transform
This commit is contained in:
@@ -409,8 +409,6 @@ public class PGraphicsJava2D extends PGraphics {
|
||||
checkSettings();
|
||||
resetMatrix(); // reset model matrix
|
||||
vertexCount = 0;
|
||||
|
||||
g2.scale(pixelDensity, pixelDensity);
|
||||
}
|
||||
|
||||
|
||||
@@ -2236,6 +2234,7 @@ public class PGraphicsJava2D extends PGraphics {
|
||||
@Override
|
||||
public void resetMatrix() {
|
||||
g2.setTransform(new AffineTransform());
|
||||
g2.scale(pixelDensity, pixelDensity);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user