Skip to content

Commit

Permalink
All platforms will now switch out of full screen when exiting game.
Browse files Browse the repository at this point in the history
  • Loading branch information
lanceewing committed Apr 16, 2024
1 parent 4f1baa4 commit 1dc5cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/com/agifans/agile/GameScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public void render(float delta) {
// This makes sure we update the Pixmap one last time before leaving, as that
// will mean that the AGI game screen starts out black for the next game.
copyPixels();
if (agileRunner.isMobile() && Gdx.graphics.isFullscreen()) {
if (Gdx.graphics.isFullscreen()) {
gameScreenInputProcessor.switchOutOfFullScreen();
}
agile.setScreen(agile.getHomeScreen());
Expand Down

0 comments on commit 1dc5cda

Please sign in to comment.