From 1644cbf6fdeb688d643a1d7e01194973fb3a5acf Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 10 Dec 2022 21:54:25 +0600 Subject: Make the mobile screen closer --- core/src/com/ilotterytea/maxoning/screens/MobileMenuScreen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src/com') diff --git a/core/src/com/ilotterytea/maxoning/screens/MobileMenuScreen.java b/core/src/com/ilotterytea/maxoning/screens/MobileMenuScreen.java index f97452b..ee3bea0 100644 --- a/core/src/com/ilotterytea/maxoning/screens/MobileMenuScreen.java +++ b/core/src/com/ilotterytea/maxoning/screens/MobileMenuScreen.java @@ -50,7 +50,7 @@ public class MobileMenuScreen implements Screen { @Override public void show() { - stage = new Stage(new FillViewport(Gdx.graphics.getWidth(), Gdx.graphics.getHeight())); + stage = new Stage(new FillViewport(Gdx.graphics.getWidth() / game.prefs.getFloat("scale", 2f), Gdx.graphics.getHeight() / game.prefs.getFloat("scale", 2f))); skin = game.assetManager.get("MainSpritesheet.skin", Skin.class); TextureAtlas brandAtlas = game.assetManager.get("sprites/gui/brand.atlas", TextureAtlas.class); -- cgit v1.2.3