Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
ac3e887e
Commit
ac3e887e
authored
Aug 27, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Support the MOUSEEVENTF_VIRTUALDESK flag in SendInput().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8bca1b29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
input.c
dlls/user32/input.c
+11
-2
No files found.
dlls/user32/input.c
View file @
ac3e887e
...
...
@@ -141,8 +141,17 @@ static void update_mouse_coords( INPUT *input )
if
(
input
->
u
.
mi
.
dwFlags
&
MOUSEEVENTF_ABSOLUTE
)
{
input
->
u
.
mi
.
dx
=
(
input
->
u
.
mi
.
dx
*
GetSystemMetrics
(
SM_CXSCREEN
))
>>
16
;
input
->
u
.
mi
.
dy
=
(
input
->
u
.
mi
.
dy
*
GetSystemMetrics
(
SM_CYSCREEN
))
>>
16
;
if
(
input
->
u
.
mi
.
dwFlags
&
MOUSEEVENTF_VIRTUALDESK
)
{
RECT
rc
=
get_virtual_screen_rect
();
input
->
u
.
mi
.
dx
=
rc
.
left
+
((
input
->
u
.
mi
.
dx
*
(
rc
.
right
-
rc
.
left
))
>>
16
);
input
->
u
.
mi
.
dy
=
rc
.
top
+
((
input
->
u
.
mi
.
dy
*
(
rc
.
bottom
-
rc
.
top
))
>>
16
);
}
else
{
input
->
u
.
mi
.
dx
=
(
input
->
u
.
mi
.
dx
*
GetSystemMetrics
(
SM_CXSCREEN
))
>>
16
;
input
->
u
.
mi
.
dy
=
(
input
->
u
.
mi
.
dy
*
GetSystemMetrics
(
SM_CYSCREEN
))
>>
16
;
}
}
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