diff --git a/core/src/processing/opengl/PSurfaceJOGL.java b/core/src/processing/opengl/PSurfaceJOGL.java index 381900a00..0d15936e2 100644 --- a/core/src/processing/opengl/PSurfaceJOGL.java +++ b/core/src/processing/opengl/PSurfaceJOGL.java @@ -751,8 +751,9 @@ public class PSurfaceJOGL implements PSurface { public void placePresent(int stopColor) { - pgl.initPresentMode(0.5f * (screenRect.width - sketchWidth), - 0.5f * (screenRect.height - sketchHeight), stopColor); + float scale = getPixelScale(); + pgl.initPresentMode(0.5f * (screenRect.width/scale - sketchWidth), + 0.5f * (screenRect.height/scale - sketchHeight), stopColor); window.setSize(screenRect.width, screenRect.height); PApplet.hideMenuBar(); window.setTopLevelPosition(sketchX + screenRect.x,