diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-05 17:29:42 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-05 17:29:42 +0100 |
commit | 193a659889cee33036b9f0f06b94e9036291d201 (patch) | |
tree | 7a027020aee342d22e6562f160e29b6b6c9d52e5 /core/src | |
parent | 0696b383bbd2d7b5897fa3b81b3502af21adad06 (diff) | |
download | RustAndDust-193a659889cee33036b9f0f06b94e9036291d201.zip RustAndDust-193a659889cee33036b9f0f06b94e9036291d201.tar.gz |
GameCamera: zoom modification triggers a updateViewport();
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/screens/GameCamera.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/screens/GameCamera.java b/core/src/ch/asynk/tankontank/screens/GameCamera.java index 85e2233..5393177 100644 --- a/core/src/ch/asynk/tankontank/screens/GameCamera.java +++ b/core/src/ch/asynk/tankontank/screens/GameCamera.java @@ -102,7 +102,7 @@ public class GameCamera extends OrthographicCamera // TODO adapt screen -> glViewport zoom += dz; clampZoom(); - update(true); + updateViewport(screenWidth, screenHeight); } public void translate(float dx, float dy) |