From d675067bf8aa441f26e666c3db5e407bf06b75ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 10 Nov 2015 15:20:05 +0100 Subject: RustAndDust: code reordering --- core/src/ch/asynk/rustanddust/RustAndDust.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/ch/asynk/rustanddust/RustAndDust.java b/core/src/ch/asynk/rustanddust/RustAndDust.java index aa3a562..adc83e8 100644 --- a/core/src/ch/asynk/rustanddust/RustAndDust.java +++ b/core/src/ch/asynk/rustanddust/RustAndDust.java @@ -154,13 +154,12 @@ public class RustAndDust extends Game FreeTypeFontParameter parameter = new FreeTypeFontParameter(); float h = Gdx.graphics.getHeight(); + Bg.setScale(Math.max((h * 0.00125f), 1.0f)); parameter.size = Math.max((int) (h * 0.04f), 16); parameter.color = Color.BLACK; fontB = generator.generateFont(parameter); parameter.color = Color.WHITE; fontW = generator.generateFont(parameter); - - Bg.setScale(Math.max((h * 0.00125f), 1.0f)); } private void unloadUiAssets() -- cgit v1.1-2-g2b99