Author: aandrejevic
Date: Sun Apr 19 02:12:12 2015
New Revision: 67290
URL:
http://svn.reactos.org/svn/reactos?rev=67290&view=rev
Log:
[NTVDM]
Account for DoubleVision when updating relative movement counters.
Modified:
trunk/reactos/subsystems/mvdm/ntvdm/hardware/mouse.c
Modified: trunk/reactos/subsystems/mvdm/ntvdm/hardware/mouse.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/mvdm/ntvdm/hard…
==============================================================================
--- trunk/reactos/subsystems/mvdm/ntvdm/hardware/mouse.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/mvdm/ntvdm/hardware/mouse.c [iso-8859-1] Sun Apr 19 02:12:12
2015
@@ -429,8 +429,8 @@
WaitForSingleObject(MouseMutex, INFINITE);
/* Update the counters */
- HorzCounter += NewPosition.X - Position.X;
- VertCounter += NewPosition.Y - Position.Y;
+ HorzCounter += (NewPosition.X - Position.X) << DoubleWidth;
+ VertCounter += (NewPosition.Y - Position.Y) << DoubleHeight;
/* Update the position */
Position = NewPosition;