Added PPT fix for M16, G17 (2023) and F15 (2022)

This commit is contained in:
Serge
2023-06-06 10:59:49 +02:00
parent 678f4b0eb7
commit a3e235e886
4 changed files with 50 additions and 32 deletions

View File

@@ -106,7 +106,7 @@ namespace WinFormsSliderBar
private void RecalculateParameters()
{
_radius = 0.4F * ClientSize.Height;
_barSize = new SizeF(ClientSize.Width - 4 * _radius, ClientSize.Height * 0.15F);
_barSize = new SizeF(ClientSize.Width - 2 * _radius, ClientSize.Height * 0.15F);
_barPos = new PointF(_radius, (ClientSize.Height - _barSize.Height) / 2);
_thumbPos = new PointF(
_barSize.Width / (Max - Min) * (Value - Min) + _barPos.X,