diff --git a/source/Dtos/SavedOptions.cs b/source/Dtos/SavedOptions.cs
index 5908c73..c4f6672 100644
--- a/source/Dtos/SavedOptions.cs
+++ b/source/Dtos/SavedOptions.cs
@@ -13,7 +13,7 @@
public bool HighQuality { get; set; }
- public int ZoomFactor { get; set; }
+ public decimal ZoomFactor { get; set; }
public int UpdateFrequency { get; set; }
diff --git a/source/Form1.cs b/source/Form1.cs
index e871a05..199bb4f 100644
--- a/source/Form1.cs
+++ b/source/Form1.cs
@@ -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
///
private void toolStripMenuItem7_Click(object sender, EventArgs e)
{
- this.ZoomFactor++;
+ this.ZoomFactor += 0.2m;
}
///
@@ -331,7 +331,7 @@ namespace SuzuMagnifier
///
private void toolStripMenuItem8_Click(object sender, EventArgs e)
{
- this.ZoomFactor--;
+ this.ZoomFactor -= 0.2m;
}
///
@@ -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);
+ }
+
///
/// Get execution arguments.
///
diff --git a/source/SuzuMagnifier.csproj b/source/SuzuMagnifier.csproj
index 75a2d69..a6a3092 100644
--- a/source/SuzuMagnifier.csproj
+++ b/source/SuzuMagnifier.csproj
@@ -6,7 +6,7 @@
true
enable
Suzu Magnifier
- 0.1.0.202
+ 0.1.0.214
Suzu Magnifier
Hi, I'm Ray
Ray Lam