Make starting window size set properly on 1.6 instances

This commit is contained in:
Sky 2013-10-07 14:56:14 +01:00
parent 58547d3867
commit b30a97d4c9

View File

@ -143,6 +143,10 @@ MinecraftProcess *OneSixInstance::prepareForLaunch(LoginResponse response)
args << version->mainClass; args << version->mainClass;
args.append(processMinecraftArgs(response)); args.append(processMinecraftArgs(response));
// Set the width and height for 1.6 instances
args << QString("--width") << settings().get("MinecraftWinWidth").toString();
args << QString("--height") << settings().get("MinecraftWinHeight").toString();
// create the process and set its parameters // create the process and set its parameters
MinecraftProcess *proc = new MinecraftProcess(this); MinecraftProcess *proc = new MinecraftProcess(this);
proc->setMinecraftArguments(args); proc->setMinecraftArguments(args);