Module: wine Branch: master Commit: a1580bba704d0bbf7a6353a41442f8886ea5a113 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a1580bba704d0bbf7a6353a414...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Feb 1 14:33:06 2012 +0100
dinput: Clip to the client area instead of the whole window in exclusive mode.
---
dlls/dinput/mouse.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/dinput/mouse.c b/dlls/dinput/mouse.c index ead6c25..f78ae23 100644 --- a/dlls/dinput/mouse.c +++ b/dlls/dinput/mouse.c @@ -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;