From ccad62a5592d0493bc659a00f8268d3a6dee2e88 Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher Date: Mon, 8 Feb 2016 17:14:52 +0100 Subject: use HdpiUtils as advertised in 1.8 release note --- core/src/ch/asynk/rustanddust/game/hud/UnitDock.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/src/ch/asynk/rustanddust/game') diff --git a/core/src/ch/asynk/rustanddust/game/hud/UnitDock.java b/core/src/ch/asynk/rustanddust/game/hud/UnitDock.java index c5d7df28..458821e8 100644 --- a/core/src/ch/asynk/rustanddust/game/hud/UnitDock.java +++ b/core/src/ch/asynk/rustanddust/game/hud/UnitDock.java @@ -2,6 +2,7 @@ package ch.asynk.rustanddust.game.hud; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.GL20; +import com.badlogic.gdx.graphics.glutils.HdpiUtils; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.math.Vector3; @@ -234,9 +235,8 @@ public class UnitDock extends Bg implements Animation batch.setTransformMatrix(transform); // batch.flush(); - // FIXME please use HdpiUtils instead release 1.8 https://libgdx.badlogicgames.com/news.html Gdx.gl.glEnable(GL20.GL_SCISSOR_TEST); - Gdx.gl.glScissor((int)scissors.x, (int)scissors.y, (int)scissors.width, (int)scissors.height); + HdpiUtils.glScissor((int)scissors.x, (int)scissors.y, (int)scissors.width, (int)scissors.height); super.draw(batch); if (selectedUnit != null) selected.draw(batch); -- cgit v1.2.3