dinput: Clip to the client area instead of the whole window in exclusive mode.
This commit is contained in:
parent
f09e4ce269
commit
a1580bba70
|
@ -426,7 +426,8 @@ static void warp_check( SysMouseImpl* This, BOOL force )
|
|||
|
||||
This->last_warped = now;
|
||||
This->need_warp = FALSE;
|
||||
if (!GetWindowRect(This->base.win, &rect)) return;
|
||||
if (!GetClientRect(This->base.win, &rect)) return;
|
||||
MapWindowPoints( This->base.win, 0, (POINT *)&rect, 2 );
|
||||
if (!This->clipped)
|
||||
{
|
||||
mapped_center.x = (rect.left + rect.right) / 2;
|
||||
|
|
Loading…
Reference in New Issue