mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-25 10:06:48 +00:00
Some casts required in the absolute motion handler now that the query functions return doubles.
This commit is contained in:
parent
64e6346ac4
commit
f08d210ba3
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue