summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/gdx/tabletop/Camera.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/gdx/tabletop/Camera.java')
-rw-r--r--core/src/ch/asynk/gdx/tabletop/Camera.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/src/ch/asynk/gdx/tabletop/Camera.java b/core/src/ch/asynk/gdx/tabletop/Camera.java
index 5d47b81..39c04b9 100644
--- a/core/src/ch/asynk/gdx/tabletop/Camera.java
+++ b/core/src/ch/asynk/gdx/tabletop/Camera.java
@@ -114,6 +114,11 @@ public class Camera extends OrthographicCamera
Matrix4.inv(hudInvProjMatrix.val);
}
+ public void applyScreenViewport()
+ {
+ HdpiUtils.glViewport(0, 0, screenWidth, screenHeight);
+ }
+
public void applyBoardViewport()
{
HdpiUtils.glViewport((int)viewport.x, (int)viewport.y, (int)viewport.width, (int)viewport.height);
@@ -124,7 +129,7 @@ public class Camera extends OrthographicCamera
if (hudInBoard)
applyBoardViewport();
else
- HdpiUtils.glViewport(0, 0, screenWidth, screenHeight);
+ applyScreenViewport();
}
public void centerOnWorld()