Alexandre Julliard : dinput: Reset the clipped flag when the cursor is released.
Alexandre Julliard
julliard at winehq.org
Thu May 5 12:08:08 CDT 2011
Module: wine
Branch: master
Commit: 86b682154b440ee5d2d9bf102704644a11cf01cc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=86b682154b440ee5d2d9bf102704644a11cf01cc
Author: Alexandre Julliard <julliard at 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 */
More information about the wine-cvs
mailing list