Skip to content

Commit

Permalink
Merge pull request #188 from raeleus/Ensure-fullscreen-mode-is-enable…
Browse files Browse the repository at this point in the history
…d-when-maximizing-on-Retina-display

Ensure fullscreen mode is enabled when maximizing on Retina display
  • Loading branch information
tommyettinger authored Jul 19, 2024
2 parents 57e2a05 + bb464cf commit 6b99a7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/gdx/liftoff/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ public void iconified(boolean b) {
@Override
public void maximized(boolean isMax) {
if (isMax){
boolean fullscreenMode = Gdx.graphics.getWidth() > FULLSCREEN_MIN_WIDTH &&
Gdx.graphics.getHeight() > FULLSCREEN_MIN_HEIGHT;
boolean fullscreenMode = Gdx.graphics.getBackBufferWidth() > FULLSCREEN_MIN_WIDTH &&
Gdx.graphics.getBackBufferHeight() > FULLSCREEN_MIN_HEIGHT;
if (fullscreenMode && root != null) {
Gdx.app.postRunnable(() -> {
root.getCurrentTable().finishAnimation();
Expand Down

0 comments on commit 6b99a7e

Please sign in to comment.