From e6a78fc8f72afb6097323a50f4a2d5a46cff5481 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Fri, 8 Sep 2023 19:32:37 +0200 Subject: [PATCH] Fan Calibration --- app/Fans.Designer.cs | 6 +++--- app/Fans.cs | 13 +++++++------ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/app/Fans.Designer.cs b/app/Fans.Designer.cs index 6c2cd780..52d78def 100644 --- a/app/Fans.Designer.cs +++ b/app/Fans.Designer.cs @@ -430,11 +430,11 @@ namespace GHelper buttonCalibrate.BorderColor = Color.Transparent; buttonCalibrate.BorderRadius = 2; buttonCalibrate.FlatStyle = FlatStyle.Flat; - buttonCalibrate.Location = new Point(239, 42); + buttonCalibrate.Location = new Point(239, 40); buttonCalibrate.Margin = new Padding(4, 2, 4, 2); buttonCalibrate.Name = "buttonCalibrate"; buttonCalibrate.Secondary = true; - buttonCalibrate.Size = new Size(135, 50); + buttonCalibrate.Size = new Size(141, 50); buttonCalibrate.TabIndex = 43; buttonCalibrate.Text = "Calibrate"; buttonCalibrate.UseVisualStyleBackColor = false; @@ -443,7 +443,7 @@ namespace GHelper // labelFansResult.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; labelFansResult.ForeColor = Color.Red; - labelFansResult.Location = new Point(18, 6); + labelFansResult.Location = new Point(18, 2); labelFansResult.Margin = new Padding(4, 0, 4, 0); labelFansResult.Name = "labelFansResult"; labelFansResult.Size = new Size(771, 32); diff --git a/app/Fans.cs b/app/Fans.cs index 9ebbc0cd..09b60b7f 100644 --- a/app/Fans.cs +++ b/app/Fans.cs @@ -715,12 +715,12 @@ namespace GHelper chart.ChartAreas[0].AxisY.CustomLabels.Clear(); - for (int i = 0; i <= fansMax - 10; i += 10) + for (int i = 0; i <= fansMax; i += 10) { chart.ChartAreas[0].AxisY.CustomLabels.Add(i - 2, i + 2, ChartYLabel(i, device)); } - chart.ChartAreas[0].AxisY.CustomLabels.Add(fansMax - 2, fansMax + 2, Properties.Strings.RPM); + //chart.ChartAreas[0].AxisY.CustomLabels.Add(fansMax -2, fansMax + 2, Properties.Strings.RPM); chart.ChartAreas[0].AxisY.Interval = 10; } @@ -728,20 +728,21 @@ namespace GHelper { string title = ""; + string scale = ", RPM/°C"; switch (device) { case AsusFan.CPU: - title = Properties.Strings.FanProfileCPU; + title = Properties.Strings.FanProfileCPU + scale; break; case AsusFan.GPU: - title = Properties.Strings.FanProfileGPU; + title = Properties.Strings.FanProfileGPU + scale; break; case AsusFan.Mid: - title = Properties.Strings.FanProfileMid; + title = Properties.Strings.FanProfileMid + scale; break; case AsusFan.XGM: - title = "XG Mobile"; + title = "XG Mobile" + scale; break; }