From 8f4fef29a0409e6d6202bb7a09b8bdca6dc4d8a1 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Fri, 25 Mar 2016 20:37:12 +0100 Subject: [PATCH] Fix #445 . --- src/Perspex.Controls/Platform/PlatformManager.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Perspex.Controls/Platform/PlatformManager.cs b/src/Perspex.Controls/Platform/PlatformManager.cs index 3c3737cd97..4f2de2555a 100644 --- a/src/Perspex.Controls/Platform/PlatformManager.cs +++ b/src/Perspex.Controls/Platform/PlatformManager.cs @@ -1,13 +1,8 @@ using System; -using System.Collections.Generic; -using System.Linq; using System.Reactive.Disposables; -using System.Text; -using System.Threading.Tasks; using Perspex.Input; using Perspex.Input.Raw; using Perspex.Media; -using Perspex.Media.Imaging; using Perspex.Platform; namespace Perspex.Controls.Platform @@ -109,12 +104,12 @@ namespace Perspex.Controls.Platform public Point PointToClient(Point point) { - return _tl.PointToClient(point / Scaling) * Scaling; + return _tl.PointToClient(point); } public Point PointToScreen(Point point) { - return _tl.PointToScreen(point * Scaling) / Scaling; + return _tl.PointToScreen(point); } public void Invalidate(Rect rc)