mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
disabling windowScaleFactor makes everything behave
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user