dinput: Clip to the client area instead of the whole window in exclusive mode.

This commit is contained in:
Alexandre Julliard 2012-02-01 14:33:06 +01:00
parent f09e4ce269
commit a1580bba70
1 changed files with 2 additions and 1 deletions

View File

@ -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;