From 2f58448bdb2456dda9a742c50f43f5cb513fab4b Mon Sep 17 00:00:00 2001 From: Miepee Date: Sat, 29 Oct 2022 21:57:00 +0200 Subject: [PATCH] Increase minimum width/height due to [m] logo --- AM2RLauncher/AM2RLauncher/MainForm/MainForm.UI.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.UI.cs b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.UI.cs index 853a9ef..3927966 100644 --- a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.UI.cs +++ b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.UI.cs @@ -140,14 +140,14 @@ public partial class MainForm : Form Icon = new Icon(1f, am2rIcon); Title = $"AM2RLauncher {VERSION}: {splash}"; - MinimumSize = new Size(500, 400); + MinimumSize = new Size(550, 500); // TODO: for some reason, this doesn't work on Linux. Was reported at eto, stays here until its fixed ClientSize = new Size(Int32.Parse(ReadFromConfig("Width")), Int32.Parse(ReadFromConfig("Height"))); // Workaround for above problem - if (OS.IsWindows && (ClientSize.Width < 500)) - ClientSize = new Size(500, ClientSize.Height); - if (OS.IsWindows && (ClientSize.Height < 400)) - ClientSize = new Size(ClientSize.Width, 400); + if (OS.IsWindows && (ClientSize.Width < 550)) + ClientSize = new Size(550, ClientSize.Height); + if (OS.IsWindows && (ClientSize.Height < 500)) + ClientSize = new Size(ClientSize.Width, 500); log.Info($"Start the launcher with Size: {ClientSize.Width}, {ClientSize.Height}"); if (Boolean.Parse(ReadFromConfig("IsMaximized"))) Maximize();