diff options
Diffstat (limited to 'app-emulation/wine/files/mousepatch.diff')
-rw-r--r-- | app-emulation/wine/files/mousepatch.diff | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app-emulation/wine/files/mousepatch.diff b/app-emulation/wine/files/mousepatch.diff new file mode 100644 index 0000000..5cdd67d --- /dev/null +++ b/app-emulation/wine/files/mousepatch.diff @@ -0,0 +1,11 @@ +--- a/dlls/dinput/mouse.c ++++ b/dlls/dinput/mouse.c +@@ -330,7 +330,7 @@ static void dinput_mouse_hook( LPDIRECTINPUTDEVICE8A iface, WPARAM wparam, LPARA + } + + This->need_warp = This->warp_override != WARP_DISABLE && +- (pt.x || pt.y) && ++ (hook->pt.x<2 || hook->pt.y<2 || hook->pt.x>((2 * This->win_centerX)-2) || hook->pt.y>((2 * This->win_centerY)-2) ) && + (dwCoop & DISCL_EXCLUSIVE || This->warp_override == WARP_FORCE_ON); + break; + } |