Skip to content

Commit 0882da0

Browse files
committed
tweak sketch sizing, prevent double-resize
1 parent f7978cc commit 0882da0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/processing/opengl/PSurfaceJOGL.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ protected void initWindow() {
338338
// https://github.com/processing/processing/issues/3545
339339

340340
if (fullScreen || spanDisplays) {
341-
sketchWidth = screenRect.width / windowScaleFactor;
342-
sketchHeight = screenRect.height / windowScaleFactor;
341+
sketchWidth = (int) (uiScale * screenRect.width / windowScaleFactor);
342+
sketchHeight = (int) (uiScale * screenRect.height / windowScaleFactor);
343343
}
344344

345345
sketch.setSize(sketchWidth, sketchHeight);

0 commit comments

Comments
 (0)