Some casts required in the absolute motion handler now that the query functions return doubles.
This commit is contained in:
parent
c5f6af87d0
commit
5eb42f0e38
1 changed files with 3 additions and 3 deletions
|
@ -528,12 +528,12 @@ namespace OpenTK.Platform.Linux
|
||||||
if (mouse != null)
|
if (mouse != null)
|
||||||
{
|
{
|
||||||
mouse.State.SetIsConnected(true);
|
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(
|
CursorPosition = new Vector2(
|
||||||
e.TransformedX(bounds.Width),
|
(float)e.TransformedX(bounds.Width),
|
||||||
e.TransformedY(bounds.Height));
|
(float)e.TransformedY(bounds.Height));
|
||||||
UpdateCursor();
|
UpdateCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue