Skip to content

Commit

Permalink
Merge branch 'seerge:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
HamzaYslmn authored Apr 12, 2023
2 parents e8154a1 + b961852 commit c9c46bc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@

## NOTE
Bug reports without clear information or scenario to reproduce and logs from ``%AppData%\GHelper`` will be closed without answer.
Please respect time of the developer. Thanks.


---
name: Bug report
about: Create a report to help us improve

---


## NOTE
Bug reports without clear information or scenario to reproduce and logs from ``%AppData%\GHelper`` will be closed without answer.
Please respect time of the developer. Thanks.


**Describe the bug**
A clear and concise description of what the bug is.

Expand Down
21 changes: 12 additions & 9 deletions app/Fans.cs
Original file line number Diff line number Diff line change
Expand Up @@ -396,17 +396,19 @@ private void ChartCPU_MouseMove(object? sender, MouseEventArgs e)
Axis ax = ca.AxisX;
Axis ay = ca.AxisY;

bool tip = false;

HitTestResult hit = chart.HitTest(e.X, e.Y);
if (hit.Series is not null && hit.PointIndex >= 0)
{
curPoint = hit.Series.Points[hit.PointIndex];
else
curPoint = null;
tip = true;
}


if (curPoint != null)
{

Series s = hit.Series;
double dx, dy, dymin;

try
Expand All @@ -428,23 +430,24 @@ private void ChartCPU_MouseMove(object? sender, MouseEventArgs e)
{
curPoint.XValue = dx;
curPoint.YValues[0] = dy;
tip = true;
}

labelTip.Visible = true;
labelTip.Text = Math.Round(curPoint.XValue) + "C, " + ChartPercToRPM((int)curPoint.YValues[0], " " + Properties.Strings.RPM);
labelTip.Top = e.Y + ((Control)sender).Top;
labelTip.Left = e.X;

}
catch
{
Debug.WriteLine(e.Y);
labelTip.Visible = false;
tip = false;
}

} else
{
labelTip.Visible = false;
}
}

labelTip.Visible = tip;


}
}
Expand Down
2 changes: 1 addition & 1 deletion app/GHelper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<PlatformTarget>x64</PlatformTarget>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<AssemblyVersion>0.50</AssemblyVersion>
<AssemblyVersion>0.51</AssemblyVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down

0 comments on commit c9c46bc

Please sign in to comment.