projects
/
platform
/
core
/
csapi
/
opentk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
637a8be
)
[Platform] Forward PointToScreen to backend
author
thefiddler
<stapostol@gmail.com>
Tue, 6 May 2014 07:02:09 +0000
(09:02 +0200)
committer
thefiddler
<stapostol@gmail.com>
Tue, 6 May 2014 07:02:09 +0000
(09:02 +0200)
Source/OpenTK/NativeWindow.cs
patch
|
blob
|
history
diff --git
a/Source/OpenTK/NativeWindow.cs
b/Source/OpenTK/NativeWindow.cs
index
d88610e
..
3d8819b
100644
(file)
--- a/
Source/OpenTK/NativeWindow.cs
+++ b/
Source/OpenTK/NativeWindow.cs
@@
-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