From 0d8f7c0145fa2a93de5af75325aea0c5df4534aa Mon Sep 17 00:00:00 2001 From: Am6er Date: Tue, 19 Mar 2024 13:51:15 +0300 Subject: [PATCH] Fix. Calculation verticalScale. --- BecquerelMonitor/BecquerelMonitor.csproj | 2 +- BecquerelMonitor/EnergySpectrumView.Designer.cs | 2 +- BecquerelMonitor/Properties/AssemblyInfo.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/BecquerelMonitor/BecquerelMonitor.csproj b/BecquerelMonitor/BecquerelMonitor.csproj index 9b89e50..68a12db 100644 --- a/BecquerelMonitor/BecquerelMonitor.csproj +++ b/BecquerelMonitor/BecquerelMonitor.csproj @@ -36,7 +36,7 @@ true index.html 1 - 2024.03.18.1 + 2024.03.19.1 true true true diff --git a/BecquerelMonitor/EnergySpectrumView.Designer.cs b/BecquerelMonitor/EnergySpectrumView.Designer.cs index bd972c1..82b5563 100644 --- a/BecquerelMonitor/EnergySpectrumView.Designer.cs +++ b/BecquerelMonitor/EnergySpectrumView.Designer.cs @@ -422,7 +422,7 @@ int CalcChanValue(int scrollBarPos) RecalcChartParameters(); this.dirty = false; } - return (int)(this.energyCalibration.EnergyToChannel((double)(scrollBarPos) / this.pixelPerEnergy / this.horizontalScale) + this.energyViewOffset); + return (int)(this.energyCalibration.EnergyToChannel((double)(scrollBarPos) / this.pixelPerEnergy / this.horizontalScale) - this.energyViewOffset); } // Token: 0x060004AE RID: 1198 RVA: 0x0001666C File Offset: 0x0001486C diff --git a/BecquerelMonitor/Properties/AssemblyInfo.cs b/BecquerelMonitor/Properties/AssemblyInfo.cs index d8b2ace..718cb1a 100644 --- a/BecquerelMonitor/Properties/AssemblyInfo.cs +++ b/BecquerelMonitor/Properties/AssemblyInfo.cs @@ -4,13 +4,13 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -[assembly: AssemblyVersion("2024.03.18.1")] +[assembly: AssemblyVersion("2024.03.19.1")] [assembly: AssemblyProduct("BecquerelMonitor")] [assembly: AssemblyCopyright("free")] [assembly: AssemblyTrademark("none")] [assembly: AssemblyConfiguration("")] [assembly: Guid("40110b38-4882-47c1-ad94-a71e58dcb5f8")] -[assembly: AssemblyFileVersion("2024.03.18.1")] +[assembly: AssemblyFileVersion("2024.03.19.1")] [assembly: AssemblyDescription("")] [assembly: AssemblyCompany("free")] [assembly: CompilationRelaxations(8)]