Preserve the sign of the mouse position. Fixes issue [#1376]: "mouse position".
This commit is contained in:
parent
c84e3ef0da
commit
a8c0c7adf4
1 changed files with 2 additions and 2 deletions
|
@ -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