mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 12:05:33 +00:00
Preserve the sign of the mouse position. Fixes issue [#1376]: "mouse position".
This commit is contained in:
parent
c84e3ef0da
commit
a8c0c7adf4
|
@ -293,8 +293,8 @@ namespace OpenTK.Platform.Windows
|
|||
|
||||
case WindowMessage.MOUSEMOVE:
|
||||
Point point = new Point(
|
||||
(int)(lParam.ToInt32() & 0x0000FFFF),
|
||||
(int)(lParam.ToInt32() & 0xFFFF0000) >> 16);
|
||||
(short)((uint)lParam.ToInt32() & 0x0000FFFF),
|
||||
(short)(((uint)lParam.ToInt32() & 0xFFFF0000) >> 16));
|
||||
mouse.Position = point;
|
||||
{
|
||||
if (!ClientRectangle.Contains(point))
|
||||
|
|
Loading…
Reference in a new issue