hopefully fix linux screen(0,0) issue

pull/11/head
Miepee 6 years ago
parent ae5e12402c
commit b8fcda6799

@ -239,6 +239,10 @@ namespace AM2RLauncher
Title = "AM2RLauncher " + VERSION + ": " + splash; Title = "AM2RLauncher " + VERSION + ": " + splash;
MinimumSize = new Size(500, 400); MinimumSize = new Size(500, 400);
ClientSize = new Size(int.Parse(CrossPlatformOperations.ReadFromConfig("Width")), int.Parse(CrossPlatformOperations.ReadFromConfig("Height"))); ClientSize = new Size(int.Parse(CrossPlatformOperations.ReadFromConfig("Width")), int.Parse(CrossPlatformOperations.ReadFromConfig("Height")));
if (ClientSize.Width < 500)
ClientSize = new Size(500, ClientSize.Height);
if (ClientSize.Height < 400)
ClientSize = new Size(ClientSize.Width, 400);
log.Info("Start the launcher with Size: " + ClientSize.Width + ", " + ClientSize.Height); log.Info("Start the launcher with Size: " + ClientSize.Width + ", " + ClientSize.Height);
if (bool.Parse(CrossPlatformOperations.ReadFromConfig("IsMaximized"))) Maximize(); if (bool.Parse(CrossPlatformOperations.ReadFromConfig("IsMaximized"))) Maximize();

Loading…
Cancel
Save