Correct PointToClient so that returned point is relative to upper left corner of game window, consistent with the documentation.

This commit is contained in:
kanato 2009-05-11 02:13:46 +00:00
parent 5817a46f65
commit d272d0b15c

View file

@ -1358,8 +1358,6 @@ namespace OpenTK
public System.Drawing.Point PointToClient(System.Drawing.Point point)
{
point = glWindow.PointToClient(point);
point.X = Width - point.X;
point.Y = Height - point.Y;
return point;
}