Module: wine Branch: master Commit: 86b682154b440ee5d2d9bf102704644a11cf01cc URL: http://source.winehq.org/git/wine.git/?a=commit;h=86b682154b440ee5d2d9bf1027...
Author: Alexandre Julliard julliard@winehq.org Date: Thu May 5 16:31:51 2011 +0200
dinput: Reset the clipped flag when the cursor is released.
---
dlls/dinput/mouse.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/dinput/mouse.c b/dlls/dinput/mouse.c index b890c73..02813ff 100644 --- a/dlls/dinput/mouse.c +++ b/dlls/dinput/mouse.c @@ -491,6 +491,11 @@ static HRESULT WINAPI SysMouseWImpl_Acquire(LPDIRECTINPUTDEVICE8W iface) if (!This->base.win) This->base.win = GetDesktopWindow(); warp_check( This, TRUE ); } + else if (This->clipped) + { + ClipCursor( NULL ); + This->clipped = FALSE; + }
return DI_OK; } @@ -517,6 +522,7 @@ static HRESULT WINAPI SysMouseWImpl_Unacquire(LPDIRECTINPUTDEVICE8W iface) { ClipCursor(NULL); ShowCursor(TRUE); /* show cursor */ + This->clipped = FALSE; }
/* And put the mouse cursor back where it was at acquire time */