disabling windowScaleFactor makes everything behave

This commit is contained in:
Ben Fry
2023-02-18 14:46:40 -05:00
parent bd0d880f33
commit 361268e768
+4 -3
View File
@@ -78,7 +78,8 @@ public class PSurfaceAWT extends PSurfaceNone {
int sketchWidth;
int sketchHeight;
int windowScaleFactor;
// int windowScaleFactor;
final int windowScaleFactor = 1;
public PSurfaceAWT(PGraphics graphics) {
@@ -337,8 +338,8 @@ public class PSurfaceAWT extends PSurfaceNone {
sketch.displayWidth = screenRect.width;
sketch.displayHeight = screenRect.height;
windowScaleFactor = PApplet.platform == PConstants.MACOS ?
1 : sketch.pixelDensity;
// windowScaleFactor = PApplet.platform == PConstants.MACOS ?
// 1 : sketch.pixelDensity;
sketchWidth = sketch.sketchWidth() * windowScaleFactor;
sketchHeight = sketch.sketchHeight() * windowScaleFactor;