From: thefiddler Date: Tue, 6 May 2014 07:02:09 +0000 (+0200) Subject: [Platform] Forward PointToScreen to backend X-Git-Tag: 2.0-0~146^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd315a3bd6a8f199c7a70d375ac5bc28f3d6d543;p=platform%2Fcore%2Fcsapi%2Fopentk.git [Platform] Forward PointToScreen to backend --- 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