summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/zproject/screens/GameScreen.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/zproject/screens/GameScreen.java')
-rw-r--r--core/src/ch/asynk/zproject/screens/GameScreen.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/ch/asynk/zproject/screens/GameScreen.java b/core/src/ch/asynk/zproject/screens/GameScreen.java
index 8447f12..606c7c3 100644
--- a/core/src/ch/asynk/zproject/screens/GameScreen.java
+++ b/core/src/ch/asynk/zproject/screens/GameScreen.java
@@ -66,13 +66,13 @@ public class GameScreen implements Screen
camera.applyMapViewport();
batch.setProjectionMatrix(camera.combined);
batch.begin();
- board.draw(batch, camera.getViewport());
+ board.draw(batch);
batch.end();
camera.applyHudViewport();
batch.setProjectionMatrix(camera.getHudMatrix());
batch.begin();
- hud.draw(batch, camera.getHud());
+ hud.draw(batch);
batch.end();
}
@@ -81,6 +81,7 @@ public class GameScreen implements Screen
if (paused) return;
ZProject.debug("GameScreen", String.format("resize (%d,%d)",width, height));
camera.updateViewport(width, height);
+ hud.resize(camera.getHud().width, camera.getHud().height);
}
@Override public void dispose()