Changed zoom to increment in 0.2

This commit is contained in:
Ray 2026-06-29 12:14:44 +01:00
parent 5fa20668db
commit 7df8e62a5a
3 changed files with 10 additions and 5 deletions

View File

@ -13,7 +13,7 @@
public bool HighQuality { get; set; }
public int ZoomFactor { get; set; }
public decimal ZoomFactor { get; set; }
public int UpdateFrequency { get; set; }

View File

@ -221,7 +221,7 @@ namespace SuzuMagnifier
public bool HighQuality { get; set; } = false;
[Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public int ZoomFactor { get => field; set => field = Math.Clamp(value, 1, 20); } = 2;
public decimal ZoomFactor { get => field; set => field = Math.Clamp(value, 1, 20); } = 2;
[Browsable(false), EditorBrowsable(EditorBrowsableState.Never), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public int UpdateFrequency { get; set; } = 33;
@ -321,7 +321,7 @@ namespace SuzuMagnifier
/// <param name="e"></param>
private void toolStripMenuItem7_Click(object sender, EventArgs e)
{
this.ZoomFactor++;
this.ZoomFactor += 0.2m;
}
/// <summary>
@ -331,7 +331,7 @@ namespace SuzuMagnifier
/// <param name="e"></param>
private void toolStripMenuItem8_Click(object sender, EventArgs e)
{
this.ZoomFactor--;
this.ZoomFactor -= 0.2m;
}
/// <summary>
@ -570,6 +570,11 @@ namespace SuzuMagnifier
return (int)Math.Floor((decimal)x / y);
}
private int Divide(int x, decimal y)
{
return (int)Math.Floor((decimal)x / y);
}
/// <summary>
/// Get execution arguments.
/// </summary>

View File

@ -6,7 +6,7 @@
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<Title>Suzu Magnifier</Title>
<Version>0.1.0.202</Version>
<Version>0.1.0.214</Version>
<Product>Suzu Magnifier</Product>
<Company>Hi, I'm Ray</Company>
<Authors>Ray Lam</Authors>