v1.3.0: fixed viewport resize issues on macOS

This commit is contained in:
Evan Debenham
2022-06-06 01:16:59 -04:00
committed by Evan Debenham
parent e265363e0a
commit 5f2fe98e1e

View File

@@ -55,6 +55,8 @@ public class DesktopPlatformSupport extends PlatformSupport {
if (!SPDSettings.fullscreen()) { if (!SPDSettings.fullscreen()) {
SPDSettings.windowResolution( previousSizes[0] ); 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 @Override