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
38d0d9fe
Commit
38d0d9fe
authored
May 16, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Only update the cursor position the first time we display it.
parent
30e187e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
device.c
dlls/wined3d/device.c
+11
-8
No files found.
dlls/wined3d/device.c
View file @
38d0d9fe
...
...
@@ -5352,17 +5352,20 @@ void CDECL wined3d_device_set_cursor_position(struct wined3d_device *device,
BOOL
CDECL
wined3d_device_show_cursor
(
struct
wined3d_device
*
device
,
BOOL
show
)
{
BOOL
oldVisible
=
device
->
bCursorVisible
;
POINT
pt
;
TRACE
(
"device %p, show %#x.
\n
"
,
device
,
show
);
/* When ShowCursor is first called it should make the cursor appear at the
* OS's last known cursor position. Because of this, some applications
* just repetitively call ShowCursor in order to update the cursor's
* position. This behavior is undocumented. */
GetCursorPos
(
&
pt
);
device
->
xScreenSpace
=
pt
.
x
;
device
->
yScreenSpace
=
pt
.
y
;
/*
* When ShowCursor is first called it should make the cursor appear at the OS's last
* known cursor position.
*/
if
(
show
&&
!
oldVisible
)
{
POINT
pt
;
GetCursorPos
(
&
pt
);
device
->
xScreenSpace
=
pt
.
x
;
device
->
yScreenSpace
=
pt
.
y
;
}
if
(
device
->
hardwareCursor
)
{
...
...
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