Fix main menu sometimes getting cut off,
This commit is contained in:
parent
3ea6035014
commit
03ed0a8d92
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue