mirror of
https://github.com/ckaczor/wpf-notifyicon.git
synced 2026-02-03 01:35:41 -05:00
Fix for the DPI issue described in #26
This commit is contained in:
@@ -51,13 +51,6 @@ namespace Hardcodet.Wpf.TaskbarNotification.Interop
|
||||
/// </summary>
|
||||
/// <param name="point">Point</param>
|
||||
/// <returns>Point</returns>
|
||||
public static Point GetDeviceCoordinates(Point point)
|
||||
{
|
||||
return new Point
|
||||
{
|
||||
X = (int)(point.X / SystemInfo.DpiFactorX),
|
||||
Y = (int)(point.Y / SystemInfo.DpiFactorY)
|
||||
};
|
||||
}
|
||||
public static Point GetDeviceCoordinates(Point point) => point.ScaleWithDpi();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user