diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-07-16 10:49:50 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-07-16 10:49:50 +0200 |
commit | 1b3386d68f36df345af399c0ea2c27bb29cd25a0 (patch) | |
tree | 713339009736b0ac5991d5775ce9d4d61c3b1947 /core/src/ch/asynk | |
parent | b2b5197d9e49b251e31f8919706ed978b9a52aa4 (diff) | |
download | RustAndDust-1b3386d68f36df345af399c0ea2c27bb29cd25a0.zip RustAndDust-1b3386d68f36df345af399c0ea2c27bb29cd25a0.tar.gz |
GameCamera: normalize computations
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/creepingarmor/screens/GameCamera.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/creepingarmor/screens/GameCamera.java b/core/src/ch/asynk/creepingarmor/screens/GameCamera.java index 33ee264..9392c5d 100644 --- a/core/src/ch/asynk/creepingarmor/screens/GameCamera.java +++ b/core/src/ch/asynk/creepingarmor/screens/GameCamera.java @@ -70,7 +70,7 @@ public class GameCamera extends OrthographicCamera window.y = ((screenHeight - window.height) / 2f); viewportHeight = (viewportWidth * (window.height / window.width)); hud.x = hudCorrection; - hud.y = (hud.x / viewportWidth * viewportHeight); + hud.y = (hud.x * viewportHeight / viewportWidth); } hud.width = (window.width - (2 * hud.x)); |