[Platform] Forward PointToScreen to backend
authorthefiddler <stapostol@gmail.com>
Tue, 6 May 2014 07:02:09 +0000 (09:02 +0200)
committerthefiddler <stapostol@gmail.com>
Tue, 6 May 2014 07:02:09 +0000 (09:02 +0200)
Source/OpenTK/NativeWindow.cs

index d88610e..3d8819b 100644 (file)
@@ -163,12 +163,7 @@ namespace OpenTK
         /// </returns>
         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