fix crashing when starting for the first time

This commit is contained in:
yugecin
2017-05-01 22:52:56 +02:00
parent eb96c49e6d
commit 32aec3ad55
2 changed files with 2 additions and 2 deletions

View File

@@ -272,6 +272,7 @@ public class DisplayContainer implements ErrorDumpable, KeyListener, MouseListen
width = height = -1;
Input.disableControllers();
Display.setTitle("opsu!dance");
OPTION_SCREEN_RESOLUTION.getListItems()[0] = nativeDisplayMode.getWidth() + "x" + nativeDisplayMode.getHeight();
updateDisplayMode(OPTION_SCREEN_RESOLUTION.getValueString());
Display.create();
GLHelper.setIcons(new String[] { "icon16.png", "icon32.png" });