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
b0657c86
Commit
b0657c86
authored
Jan 30, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Catch unsuccessful clipping attempts and fall back to warping.
parent
bfa2c5ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
mouse.c
dlls/dinput/mouse.c
+3
-2
No files found.
dlls/dinput/mouse.c
View file @
b0657c86
...
...
@@ -421,7 +421,7 @@ static void warp_check( SysMouseImpl* This, BOOL force )
if
(
force
||
(
This
->
need_warp
&&
(
now
-
This
->
last_warped
>
interval
)))
{
RECT
rect
;
RECT
rect
,
new_rect
;
POINT
mapped_center
;
This
->
last_warped
=
now
;
...
...
@@ -442,7 +442,8 @@ static void warp_check( SysMouseImpl* This, BOOL force )
rect
.
right
=
min
(
rect
.
right
,
rect
.
left
+
GetSystemMetrics
(
SM_CXVIRTUALSCREEN
)
-
2
);
rect
.
bottom
=
min
(
rect
.
bottom
,
rect
.
top
+
GetSystemMetrics
(
SM_CYVIRTUALSCREEN
)
-
2
);
TRACE
(
"Clipping mouse to %s
\n
"
,
wine_dbgstr_rect
(
&
rect
));
This
->
clipped
=
ClipCursor
(
&
rect
);
ClipCursor
(
&
rect
);
This
->
clipped
=
GetClipCursor
(
&
new_rect
)
&&
EqualRect
(
&
rect
,
&
new_rect
);
}
}
}
...
...
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