mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
tweak sketch sizing, prevent double-resize
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user