From 801096299b78b6203a1750952cc65e9fdac4382b Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Wed, 3 May 2023 17:53:21 +0200 Subject: [PATCH] Anime matrix tweaks --- app/AnimeMatrix/AnimeMatrixDevice.cs | 3 +++ app/Program.cs | 3 ++- app/Settings.cs | 14 ++++++-------- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/app/AnimeMatrix/AnimeMatrixDevice.cs b/app/AnimeMatrix/AnimeMatrixDevice.cs index 4b7f4a87..18baad05 100644 --- a/app/AnimeMatrix/AnimeMatrixDevice.cs +++ b/app/AnimeMatrix/AnimeMatrixDevice.cs @@ -420,6 +420,9 @@ namespace Starlight.AnimeMatrix public void PresentTextDiagonal(string text) { + + Clear(); + int maxX = (int)Math.Sqrt(MaxRows * MaxRows + MaxColumns * MaxColumns); using (Bitmap bmp = new Bitmap(maxX, MaxRows)) diff --git a/app/Program.cs b/app/Program.cs index 80e8a0bc..9f74354d 100644 --- a/app/Program.cs +++ b/app/Program.cs @@ -2,6 +2,7 @@ using Microsoft.Win32; using System.Diagnostics; using System.Globalization; using System.Management; +using System.Reflection; using System.Security.Principal; using Tools; @@ -103,7 +104,7 @@ namespace GHelper } Logger.WriteLine("------------"); - Logger.WriteLine("App launched: " + config.GetModel()); + Logger.WriteLine("App launched: " + config.GetModel() + " :" + Assembly.GetExecutingAssembly().GetName().Version.ToString()); Application.EnableVisualStyles(); diff --git a/app/Settings.cs b/app/Settings.cs index a72d331d..1545f767 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -885,7 +885,12 @@ namespace GHelper this.Top = Screen.FromControl(this).WorkingArea.Height - 10 - this.Height; this.Activate(); - aTimer.Enabled = true; + Task.Run(async () => + { + await Task.Delay(TimeSpan.FromSeconds(1)); + aTimer.Enabled = true; + }); + } else { @@ -924,13 +929,6 @@ namespace GHelper customPower = limit_cpu; } - /* - if (Program.wmi.DeviceGet(ASUSWmi.PPT_APUC2) >= 0) - { - Program.wmi.DeviceSet(ASUSWmi.PPT_APUC2, 87, "PowerLimit C2"); - } - */ - Program.settingsForm.BeginInvoke(SetPerformanceLabel); }