Avoid using FitViewport in Android

Fixes #66.
This commit is contained in:
Lonami Exo 2020-08-30 11:54:39 +02:00
parent b190ffb6b3
commit 2c7125710f

View file

@ -26,7 +26,6 @@ import com.badlogic.gdx.scenes.scene2d.InputListener;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.Table;
import com.badlogic.gdx.scenes.scene2d.utils.ChangeListener;
import com.badlogic.gdx.utils.viewport.FitViewport;
import dev.lonami.klooni.Klooni;
import dev.lonami.klooni.actors.SoftButton;
@ -58,7 +57,6 @@ public class MainMenuScreen extends InputListener implements Screen {
Table table = new Table();
table.setFillParent(true);
stage.addActor(table);
stage.setViewport(new FitViewport(Klooni.GAME_WIDTH, Klooni.GAME_HEIGHT));
// Play button
final SoftButton playButton = new SoftButton(