summaryrefslogtreecommitdiffstats
path: root/depends/launcher
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-05-06 23:39:02 +0200
committerPetr Mrázek <peterix@gmail.com>2014-06-09 01:38:29 +0200
commit825d31bf1a7e66eee8a139ecd9b272cf3c374349 (patch)
tree94c8617c472462331d82ab4bfd72a1c8dba4eaa4 /depends/launcher
parent2590c6be15ab549256f0a39028aefb887ac5131a (diff)
downloadMultiMC-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.java15
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