mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-02 19:51:10 +00:00
Correct PointToClient so that returned point is relative to upper left corner of game window, consistent with the documentation.
This commit is contained in:
parent
721e45a5d4
commit
f71fdac268
|
@ -1358,8 +1358,6 @@ namespace OpenTK
|
||||||
public System.Drawing.Point PointToClient(System.Drawing.Point point)
|
public System.Drawing.Point PointToClient(System.Drawing.Point point)
|
||||||
{
|
{
|
||||||
point = glWindow.PointToClient(point);
|
point = glWindow.PointToClient(point);
|
||||||
point.X = Width - point.X;
|
|
||||||
point.Y = Height - point.Y;
|
|
||||||
|
|
||||||
return point;
|
return point;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue