From 39d17f7c824170abac6c1c500397b7dd3b024e14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sat, 13 Feb 2016 17:00:59 +0100 Subject: Screens: call resize(int, int) after resuming from pause --- core/src/ch/asynk/rustanddust/screens/GameScreen.java | 1 + core/src/ch/asynk/rustanddust/screens/MenuScreen.java | 1 + 2 files changed, 2 insertions(+) diff --git a/core/src/ch/asynk/rustanddust/screens/GameScreen.java b/core/src/ch/asynk/rustanddust/screens/GameScreen.java index a4c6bd6..35079e9 100644 --- a/core/src/ch/asynk/rustanddust/screens/GameScreen.java +++ b/core/src/ch/asynk/rustanddust/screens/GameScreen.java @@ -231,5 +231,6 @@ public class GameScreen implements Screen { RustAndDust.debug("RustAndDust", "resume() "); paused = false; + resize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight()); } } diff --git a/core/src/ch/asynk/rustanddust/screens/MenuScreen.java b/core/src/ch/asynk/rustanddust/screens/MenuScreen.java index 41ed61e..ed757e2 100644 --- a/core/src/ch/asynk/rustanddust/screens/MenuScreen.java +++ b/core/src/ch/asynk/rustanddust/screens/MenuScreen.java @@ -274,5 +274,6 @@ public class MenuScreen implements Screen public void resume() { paused = false; + resize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight()); } } -- cgit v1.1-2-g2b99