From 5f2fe98e1eb2aab6b86f0bf390414e40fa6a6ae9 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 6 Jun 2022 01:16:59 -0400 Subject: [PATCH] v1.3.0: fixed viewport resize issues on macOS --- .../shatteredpixeldungeon/desktop/DesktopPlatformSupport.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop/src/main/java/com/shatteredpixel/shatteredpixeldungeon/desktop/DesktopPlatformSupport.java b/desktop/src/main/java/com/shatteredpixel/shatteredpixeldungeon/desktop/DesktopPlatformSupport.java index 8498fa717..1a5505fe4 100644 --- a/desktop/src/main/java/com/shatteredpixel/shatteredpixeldungeon/desktop/DesktopPlatformSupport.java +++ b/desktop/src/main/java/com/shatteredpixel/shatteredpixeldungeon/desktop/DesktopPlatformSupport.java @@ -55,6 +55,8 @@ public class DesktopPlatformSupport extends PlatformSupport { if (!SPDSettings.fullscreen()) { SPDSettings.windowResolution( previousSizes[0] ); } + //TODO fixes an in libGDX v1.11.0 with macOS displays + Gdx.gl.glViewport(0, 0, Gdx.graphics.getBackBufferWidth(), Gdx.graphics.getBackBufferHeight()); } @Override