From 193a659889cee33036b9f0f06b94e9036291d201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 5 Jan 2015 17:29:42 +0100 Subject: GameCamera: zoom modification triggers a updateViewport(); --- core/src/ch/asynk/tankontank/screens/GameCamera.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.1-2-g2b99