winex11drv: Return cached cursor_pos in GetCursorPos().

Vitaliy Margolen wine-patches at kievinfo.com
Sat Dec 9 15:10:43 CST 2006


Change Log:
  Return cached cursor_pos in GetCursorPos().
  Use "last_time_updated" to revert to old behavior or when mouse
   position hasn't been updated for some time.
  Don't change actual cursor position in SetCursorPos() if it hasn't changed.

We need change to SetCursorPos() to fix introduced timing issues with some games.
They pull cursor position with GetCursrorPos() then if cursor moved, reset it to
center with SetCursorPos(). If for some reason we get a bit behind, this will
result in almost no cursor movement in the game. In a sense we need to "cache"
both operations here.

---
 dlls/winex11.drv/mouse.c |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 17e5b1dde6ee48aebe95a7cdb0e23b5be64beb9c.diff
Type: text/x-patch
Size: 1864 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061209/c36bc4a7/17e5b1dde6ee48aebe95a7cdb0e23b5be64beb9c.bin


More information about the wine-patches mailing list