diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-05-06 23:39:02 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-06-09 01:38:29 +0200 |
commit | 825d31bf1a7e66eee8a139ecd9b272cf3c374349 (patch) | |
tree | 94c8617c472462331d82ab4bfd72a1c8dba4eaa4 /depends/launcher | |
parent | 2590c6be15ab549256f0a39028aefb887ac5131a (diff) | |
download | MultiMC-825d31bf1a7e66eee8a139ecd9b272cf3c374349.tar MultiMC-825d31bf1a7e66eee8a139ecd9b272cf3c374349.tar.gz MultiMC-825d31bf1a7e66eee8a139ecd9b272cf3c374349.tar.lz MultiMC-825d31bf1a7e66eee8a139ecd9b272cf3c374349.tar.xz MultiMC-825d31bf1a7e66eee8a139ecd9b272cf3c374349.zip |
Set the window params inside the launcher part, depending on launcher type.
Also create/change the new internal version files.
Diffstat (limited to 'depends/launcher')
-rw-r--r-- | depends/launcher/org/multimc/onesix/OneSixLauncher.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/depends/launcher/org/multimc/onesix/OneSixLauncher.java b/depends/launcher/org/multimc/onesix/OneSixLauncher.java index 0bd5c7ce..784c3522 100644 --- a/depends/launcher/org/multimc/onesix/OneSixLauncher.java +++ b/depends/launcher/org/multimc/onesix/OneSixLauncher.java @@ -181,6 +181,21 @@ public class OneSixLauncher implements Launcher int launchWithMainClass() { + // window size, title and state, onesix + if (maximize) + { + // FIXME: there is no good way to maximize the minecraft window in onesix. + // the following often breaks linux screen setups + // mcparams.add("--fullscreen"); + } + else + { + mcparams.add("--width"); + mcparams.add(Integer.toString(winSize.width)); + mcparams.add("--height"); + mcparams.add(Integer.toString(winSize.height)); + } + // Get the Minecraft Class. Class<?> mc; try |