mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 21:06:17 +00:00
[NTVDM]
Account for DoubleVision when updating relative movement counters. svn path=/trunk/; revision=67290
This commit is contained in:
parent
9d66b452ee
commit
5e3f9799d4
1 changed files with 2 additions and 2 deletions
|
@ -429,8 +429,8 @@ VOID MouseEventHandler(PMOUSE_EVENT_RECORD MouseEvent)
|
||||||
WaitForSingleObject(MouseMutex, INFINITE);
|
WaitForSingleObject(MouseMutex, INFINITE);
|
||||||
|
|
||||||
/* Update the counters */
|
/* Update the counters */
|
||||||
HorzCounter += NewPosition.X - Position.X;
|
HorzCounter += (NewPosition.X - Position.X) << DoubleWidth;
|
||||||
VertCounter += NewPosition.Y - Position.Y;
|
VertCounter += (NewPosition.Y - Position.Y) << DoubleHeight;
|
||||||
|
|
||||||
/* Update the position */
|
/* Update the position */
|
||||||
Position = NewPosition;
|
Position = NewPosition;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue