From 64f457211330b00a4470d5ea115e05a2ccd9ad96 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Tue, 5 Mar 2024 00:31:25 +0100 Subject: [PATCH] UI tweaks --- app/AppConfig.cs | 5 +++++ app/AsusACPI.cs | 8 ++++++++ app/Fans.cs | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app/AppConfig.cs b/app/AppConfig.cs index 6a535827..38aa14af 100644 --- a/app/AppConfig.cs +++ b/app/AppConfig.cs @@ -532,6 +532,11 @@ public static class AppConfig return ContainsModel("GA402X") || ContainsModel("G513") || ContainsModel("G713R") || ContainsModel("G713P") || ContainsModel("GU605") || ContainsModel("GA403"); } + public static bool IsAMDLight() + { + return ContainsModel("GA402X") || ContainsModel("GU605") || ContainsModel("GA403") || ContainsModel("FA507N") || ContainsModel("FA507X") || ContainsModel("FA707N") || ContainsModel("FA707X"); + } + public static bool IsPowerRequired() { return ContainsModel("FX507") || ContainsModel("FX517") || ContainsModel("FX707"); diff --git a/app/AsusACPI.cs b/app/AsusACPI.cs index d77dfd66..2a0c1eaa 100644 --- a/app/AsusACPI.cs +++ b/app/AsusACPI.cs @@ -308,6 +308,14 @@ public class AsusACPI { MaxGPUBoost = 15; } + + if (AppConfig.IsAMDLight()) + { + MaxTotal = 90; + } + + + } public void Control(uint dwIoControlCode, byte[] lpInBuffer, byte[] lpOutBuffer) diff --git a/app/Fans.cs b/app/Fans.cs index 705f0aed..68487bf9 100644 --- a/app/Fans.cs +++ b/app/Fans.cs @@ -1008,7 +1008,7 @@ namespace GHelper try { if (chartCount > 2) - Size = MinimumSize = new Size(Size.Width, (int)(ControlHelper.GetDpiScale(this).Value * (chartCount * 200 + 100))); + Size = MinimumSize = new Size(Size.Width, Math.Max(MinimumSize.Height, (int)(ControlHelper.GetDpiScale(this).Value * (chartCount * 200 + 100)))); } catch (Exception ex) {