diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-13 17:00:59 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-13 17:00:59 +0100 |
commit | 39d17f7c824170abac6c1c500397b7dd3b024e14 (patch) | |
tree | 8f201b06ccb9e0c84a8de1c81c0b5d45749af036 /core/src/ch | |
parent | b90d4dd1963506b96cbde1e99d77110304b09257 (diff) | |
download | RustAndDust-39d17f7c824170abac6c1c500397b7dd3b024e14.zip RustAndDust-39d17f7c824170abac6c1c500397b7dd3b024e14.tar.gz |
Screens: call resize(int, int) after resuming from pause
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/rustanddust/screens/GameScreen.java | 1 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/screens/MenuScreen.java | 1 |
2 files changed, 2 insertions, 0 deletions
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()); } } |