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
5f6dd538
Commit
5f6dd538
authored
Oct 20, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move the cursor in wined3d_device_set_cursor_position().
parent
bbbee31c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
device.c
dlls/wined3d/device.c
+7
-1
No files found.
dlls/wined3d/device.c
View file @
5f6dd538
...
...
@@ -5251,10 +5251,16 @@ void CDECL wined3d_device_set_cursor_position(struct wined3d_device *device,
device
->
xScreenSpace
=
x_screen_space
;
device
->
yScreenSpace
=
y_screen_space
;
/* switch to the software cursor if position diverges from the hardware one */
if
(
device
->
hardwareCursor
)
{
POINT
pt
;
GetCursorPos
(
&
pt
);
if
(
x_screen_space
==
pt
.
x
&&
y_screen_space
==
pt
.
y
)
return
;
SetCursorPos
(
x_screen_space
,
y_screen_space
);
/* Switch to the software cursor if position diverges from the hardware one. */
GetCursorPos
(
&
pt
);
if
(
x_screen_space
!=
pt
.
x
||
y_screen_space
!=
pt
.
y
)
{
...
...
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