mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Only mark Resizable as false on non-fullscreen setups, helps avoid corner cases when fullscreen fails on Linux (e.g. on multiple monitor setups) (#6627)
This commit is contained in:
@@ -25,7 +25,6 @@ public class GameLauncher {
|
|||||||
Configuration.GLFW_LIBRARY_NAME.set("glfw_async");
|
Configuration.GLFW_LIBRARY_NAME.set("glfw_async");
|
||||||
}
|
}
|
||||||
Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();
|
Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();
|
||||||
config.setResizable(false);
|
|
||||||
ApplicationListener start = Forge.getApp(new Lwjgl3Clipboard(), new Main.DesktopAdapter(switchOrientationFile),//todo get totalRAM && isTabletDevice
|
ApplicationListener start = Forge.getApp(new Lwjgl3Clipboard(), new Main.DesktopAdapter(switchOrientationFile),//todo get totalRAM && isTabletDevice
|
||||||
assetsDir, false, false, 0, false, 0, "", "");
|
assetsDir, false, false, 0, false, 0, "", "");
|
||||||
if (Config.instance().getSettingData().fullScreen) {
|
if (Config.instance().getSettingData().fullScreen) {
|
||||||
@@ -34,6 +33,7 @@ public class GameLauncher {
|
|||||||
config.setHdpiMode(HdpiMode.Logical);
|
config.setHdpiMode(HdpiMode.Logical);
|
||||||
} else {
|
} else {
|
||||||
config.setWindowedMode(Config.instance().getSettingData().width, Config.instance().getSettingData().height);
|
config.setWindowedMode(Config.instance().getSettingData().width, Config.instance().getSettingData().height);
|
||||||
|
config.setResizable(false);
|
||||||
}
|
}
|
||||||
config.setTitle("Forge - " + versionString);
|
config.setTitle("Forge - " + versionString);
|
||||||
config.setWindowListener(new Lwjgl3WindowAdapter() {
|
config.setWindowListener(new Lwjgl3WindowAdapter() {
|
||||||
|
|||||||
Reference in New Issue
Block a user