1
Fork 0

Fix main menu sometimes getting cut off,

This commit is contained in:
Joshua Goins 2022-05-02 20:12:04 -04:00
parent 3ea6035014
commit 03ed0a8d92

View file

@ -69,8 +69,8 @@ public class MainMenuScreen implements Screen {
@Override @Override
public void resize(int width, int height) { public void resize(int width, int height) {
camera.viewportWidth = 330; camera.viewportWidth = 430;
camera.viewportHeight = 330 * ((float)height / (float)width); camera.viewportHeight = 430 * ((float)height / (float)width);
backgroundSprite.setSize(camera.viewportWidth, camera.viewportHeight); backgroundSprite.setSize(camera.viewportWidth, camera.viewportHeight);
} }