From b8fcda6799453516bd336fdd81b554abd303459c Mon Sep 17 00:00:00 2001 From: Miepee <38186597+Miepee@users.noreply.github.com> Date: Thu, 22 Apr 2021 17:01:47 +0200 Subject: [PATCH] hopefully fix linux screen(0,0) issue --- AM2RLauncher/AM2RLauncher/MainForm/MainForm.UI.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.UI.cs b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.UI.cs index 5af4d0c..c3fee69 100644 --- a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.UI.cs +++ b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.UI.cs @@ -239,6 +239,10 @@ namespace AM2RLauncher Title = "AM2RLauncher " + VERSION + ": " + splash; MinimumSize = new Size(500, 400); 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); if (bool.Parse(CrossPlatformOperations.ReadFromConfig("IsMaximized"))) Maximize();