From cd315a3bd6a8f199c7a70d375ac5bc28f3d6d543 Mon Sep 17 00:00:00 2001 From: thefiddler Date: Tue, 6 May 2014 09:02:09 +0200 Subject: [PATCH] [Platform] Forward PointToScreen to backend --- Source/OpenTK/NativeWindow.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Source/OpenTK/NativeWindow.cs b/Source/OpenTK/NativeWindow.cs index d88610e..3d8819b 100644 --- a/Source/OpenTK/NativeWindow.cs +++ b/Source/OpenTK/NativeWindow.cs @@ -163,12 +163,7 @@ namespace OpenTK /// public Point PointToScreen(Point point) { - // Here we use the fact that PointToClient just translates the point, and PointToScreen - // should perform the inverse operation. - Point trans = PointToClient(Point.Empty); - point.X -= trans.X; - point.Y -= trans.Y; - return point; + return implementation.PointToScreen(point); } #endregion -- 2.7.4