summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-01-05 17:29:42 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-01-05 17:29:42 +0100
commit193a659889cee33036b9f0f06b94e9036291d201 (patch)
tree7a027020aee342d22e6562f160e29b6b6c9d52e5 /core/src/ch
parent0696b383bbd2d7b5897fa3b81b3502af21adad06 (diff)
downloadRustAndDust-193a659889cee33036b9f0f06b94e9036291d201.zip
RustAndDust-193a659889cee33036b9f0f06b94e9036291d201.tar.gz
GameCamera: zoom modification triggers a updateViewport();
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/tankontank/screens/GameCamera.java2
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)