Skip to content

Commit 16bc608

Browse files
committed
Merge pull request #255 from gobetti/dpi-helper-cleanup
Fixed wording and removed unnecessary usings from DpiHelper.cs
2 parents 4e4557b + ef3ba1a commit 16bc608

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

MaterialDesignThemes.Wpf/DpiHelper.cs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Reflection;
5-
using System.Text;
6-
using System.Threading.Tasks;
1+
using System.Reflection;
72
using System.Windows;
83
using System.Windows.Media;
94

@@ -14,8 +9,8 @@ internal static class DpiHelper
149
private static readonly int DpiX;
1510
private static readonly int DpiY;
1611

17-
private const double StandartDpiX = 96.0;
18-
private const double StandartDpiY = 96.0;
12+
private const double StandardDpiX = 96.0;
13+
private const double StandardDpiY = 96.0;
1914

2015
static DpiHelper()
2116
{
@@ -44,12 +39,12 @@ public static double TransformToDeviceX(Visual visual, double x)
4439

4540
public static double TransformToDeviceY(double y)
4641
{
47-
return y * DpiY / StandartDpiY;
42+
return y * DpiY / StandardDpiY;
4843
}
4944

5045
public static double TransformToDeviceX(double x)
5146
{
52-
return x * DpiX / StandartDpiX;
47+
return x * DpiX / StandardDpiX;
5348
}
5449
}
5550
}

0 commit comments

Comments
 (0)