diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2018-10-08 14:20:03 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2018-10-08 14:20:03 +0200 |
commit | 13fbbbc4ad77a9fb8f5951502e7ed2efa05278f8 (patch) | |
tree | b3f755ef5f68f56d5acd68e11b239c7bef39f5cf /test/src/ch/asynk/gdx | |
parent | 2d0b3c6198ed9bc9edf1689554f033a8b74e67c2 (diff) | |
download | gdx-boardgame-13fbbbc4ad77a9fb8f5951502e7ed2efa05278f8.zip gdx-boardgame-13fbbbc4ad77a9fb8f5951502e7ed2efa05278f8.tar.gz |
AbstractScreen : the screen set the glViewport at construction
Diffstat (limited to 'test/src/ch/asynk/gdx')
-rw-r--r-- | test/src/ch/asynk/gdx/boardgame/test/AbstractScreen.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/src/ch/asynk/gdx/boardgame/test/AbstractScreen.java b/test/src/ch/asynk/gdx/boardgame/test/AbstractScreen.java index d0929ee..767a4ea 100644 --- a/test/src/ch/asynk/gdx/boardgame/test/AbstractScreen.java +++ b/test/src/ch/asynk/gdx/boardgame/test/AbstractScreen.java @@ -6,6 +6,7 @@ import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.Camera; import com.badlogic.gdx.graphics.Texture; +import com.badlogic.gdx.graphics.glutils.HdpiUtils; import com.badlogic.gdx.Input; import com.badlogic.gdx.InputAdapter; import com.badlogic.gdx.InputMultiplexer; @@ -48,6 +49,8 @@ public abstract class AbstractScreen implements Screen this.inputBlocked = false; this.inputDelay = 0f; this.paused = false; + + HdpiUtils.glViewport(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight()); } protected abstract void draw(SpriteBatch batch); |