Author: mjmartin
Date: Fri May 29 08:35:07 2009
New Revision: 41190
URL:
http://svn.reactos.org/svn/reactos?rev=41190&view=rev
Log:
- ProcessMouseInputData: Mouse pointer shown on window was slightly off. Fix calculation
in conversion to screen position.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/input.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/input.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/input.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/input.c [iso-8859-1] Fri May 29 08:35:07
2009
@@ -140,8 +140,8 @@
{
/* Set flag and convert to screen location */
mi.dwFlags |= MOUSEEVENTF_ABSOLUTE;
- mi.dx = mi.dx / (65535 / UserGetSystemMetrics(SM_CXVIRTUALSCREEN));
- mi.dy = mi.dy / (65535 / UserGetSystemMetrics(SM_CYVIRTUALSCREEN));
+ mi.dx = mi.dx / (65535 / (UserGetSystemMetrics(SM_CXVIRTUALSCREEN) - 1));
+ mi.dy = mi.dy / (65535 / (UserGetSystemMetrics(SM_CYVIRTUALSCREEN) - 1));
}
if(mid->ButtonFlags)