Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
c33615dc
Commit
c33615dc
authored
Aug 27, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Map mouse events to physical coordinates in SendInput.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ac3e887e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
input.c
dlls/user32/input.c
+2
-0
No files found.
dlls/user32/input.c
View file @
c33615dc
...
...
@@ -141,6 +141,7 @@ static void update_mouse_coords( INPUT *input )
if
(
input
->
u
.
mi
.
dwFlags
&
MOUSEEVENTF_ABSOLUTE
)
{
DPI_AWARENESS_CONTEXT
context
=
SetThreadDpiAwarenessContext
(
DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE
);
if
(
input
->
u
.
mi
.
dwFlags
&
MOUSEEVENTF_VIRTUALDESK
)
{
RECT
rc
=
get_virtual_screen_rect
();
...
...
@@ -152,6 +153,7 @@ static void update_mouse_coords( INPUT *input )
input
->
u
.
mi
.
dx
=
(
input
->
u
.
mi
.
dx
*
GetSystemMetrics
(
SM_CXSCREEN
))
>>
16
;
input
->
u
.
mi
.
dy
=
(
input
->
u
.
mi
.
dy
*
GetSystemMetrics
(
SM_CYSCREEN
))
>>
16
;
}
SetThreadDpiAwarenessContext
(
context
);
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment