diff --git a/core/src/processing/opengl/PSurfaceJOGL.java b/core/src/processing/opengl/PSurfaceJOGL.java index adfe8337c..f3cc5be4a 100644 --- a/core/src/processing/opengl/PSurfaceJOGL.java +++ b/core/src/processing/opengl/PSurfaceJOGL.java @@ -338,8 +338,8 @@ public class PSurfaceJOGL implements PSurface { // https://github.com/processing/processing/issues/3545 if (fullScreen || spanDisplays) { - sketchWidth = screenRect.width / windowScaleFactor; - sketchHeight = screenRect.height / windowScaleFactor; + sketchWidth = (int) (uiScale * screenRect.width / windowScaleFactor); + sketchHeight = (int) (uiScale * screenRect.height / windowScaleFactor); } sketch.setSize(sketchWidth, sketchHeight);