Some casts required in the absolute motion handler now that the query functions return doubles.

This commit is contained in:
Malcolm Still 2017-01-06 15:40:18 +00:00
parent c5f6af87d0
commit 5eb42f0e38

View file

@ -528,12 +528,12 @@ namespace OpenTK.Platform.Linux
if (mouse != null)
{
mouse.State.SetIsConnected(true);
mouse.State.Position = new Vector2(e.X, e.Y);
mouse.State.Position = new Vector2((float)e.X, (float)e.Y);
}
CursorPosition = new Vector2(
e.TransformedX(bounds.Width),
e.TransformedY(bounds.Height));
(float)e.TransformedX(bounds.Width),
(float)e.TransformedY(bounds.Height));
UpdateCursor();
}