- Do not set fullscreenFlag to true by default in forge-gui-mobile-dev (unexpectedly breaks loading localization data).

This commit is contained in:
Agetian
2017-06-26 16:08:57 +00:00
parent 122b6718fc
commit a56f5870a8

View File

@@ -44,7 +44,7 @@ public class Main {
// Can be specified inside the file fullscreen_resolution.ini to override default (in the format WxH, e.g. 1920x1080)
int desktopScreenWidth = LwjglApplicationConfiguration.getDesktopDisplayMode().width;
int desktopScreenHeight = LwjglApplicationConfiguration.getDesktopDisplayMode().height;
boolean fullscreenFlag = true;
boolean fullscreenFlag = false;
if (FileUtil.doesFileExist(desktopModeAssetsDir + "screen_resolution.ini")) {
String[] res = FileUtil.readFileToString(desktopModeAssetsDir + "screen_resolution.ini").split("x");
fullscreenFlag = res.length == 3 ? Integer.parseInt(res[2].trim()) > 0 : true;