summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-07-16 10:49:50 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2015-07-16 10:49:50 +0200
commit1b3386d68f36df345af399c0ea2c27bb29cd25a0 (patch)
tree713339009736b0ac5991d5775ce9d4d61c3b1947 /core/src
parentb2b5197d9e49b251e31f8919706ed978b9a52aa4 (diff)
downloadRustAndDust-1b3386d68f36df345af399c0ea2c27bb29cd25a0.zip
RustAndDust-1b3386d68f36df345af399c0ea2c27bb29cd25a0.tar.gz
GameCamera: normalize computations
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/creepingarmor/screens/GameCamera.java2
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));