mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 00:05:44 +00:00
- ProcessMouseInputData: Mouse pointer shown on window was slightly off. Fix calculation in conversion to screen position.
svn path=/trunk/; revision=41190
This commit is contained in:
parent
ee5f7d6175
commit
add725ffb4
1 changed files with 2 additions and 2 deletions
|
@ -140,8 +140,8 @@ ProcessMouseInputData(PMOUSE_INPUT_DATA Data, ULONG InputCount)
|
||||||
{
|
{
|
||||||
/* Set flag and convert to screen location */
|
/* Set flag and convert to screen location */
|
||||||
mi.dwFlags |= MOUSEEVENTF_ABSOLUTE;
|
mi.dwFlags |= MOUSEEVENTF_ABSOLUTE;
|
||||||
mi.dx = mi.dx / (65535 / UserGetSystemMetrics(SM_CXVIRTUALSCREEN));
|
mi.dx = mi.dx / (65535 / (UserGetSystemMetrics(SM_CXVIRTUALSCREEN) - 1));
|
||||||
mi.dy = mi.dy / (65535 / UserGetSystemMetrics(SM_CYVIRTUALSCREEN));
|
mi.dy = mi.dy / (65535 / (UserGetSystemMetrics(SM_CYVIRTUALSCREEN) - 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(mid->ButtonFlags)
|
if(mid->ButtonFlags)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue