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
4b968267
Commit
4b968267
authored
Jan 26, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Jun 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Notify drivers of cursor changes on WM_WINE_SETCURSOR.
parent
3afff1a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
cursoricon.c
dlls/win32u/cursoricon.c
+1
-12
No files found.
dlls/win32u/cursoricon.c
View file @
4b968267
...
...
@@ -77,6 +77,7 @@ static struct cursoricon_object *get_icon_ptr( HICON handle )
BOOL
process_wine_setcursor
(
HWND
hwnd
,
HWND
window
,
HCURSOR
handle
)
{
TRACE
(
"hwnd %p, window %p, hcursor %p
\n
"
,
hwnd
,
window
,
handle
);
user_driver
->
pSetCursor
(
window
,
handle
);
return
TRUE
;
}
...
...
@@ -85,7 +86,6 @@ BOOL process_wine_setcursor( HWND hwnd, HWND window, HCURSOR handle )
*/
INT
WINAPI
NtUserShowCursor
(
BOOL
show
)
{
HCURSOR
cursor
;
int
increment
=
show
?
1
:
-
1
;
int
count
;
...
...
@@ -94,16 +94,11 @@ INT WINAPI NtUserShowCursor( BOOL show )
req
->
flags
=
SET_CURSOR_COUNT
;
req
->
show_count
=
increment
;
wine_server_call
(
req
);
cursor
=
wine_server_ptr_handle
(
reply
->
prev_handle
);
count
=
reply
->
prev_count
+
increment
;
}
SERVER_END_REQ
;
TRACE
(
"%d, count=%d
\n
"
,
show
,
count
);
if
(
show
&&
!
count
)
user_driver
->
pSetCursor
(
0
,
cursor
);
else
if
(
!
show
&&
count
==
-
1
)
user_driver
->
pSetCursor
(
0
,
0
);
return
count
;
}
...
...
@@ -114,7 +109,6 @@ HCURSOR WINAPI NtUserSetCursor( HCURSOR cursor )
{
struct
cursoricon_object
*
obj
;
HCURSOR
old_cursor
;
int
show_count
;
BOOL
ret
;
TRACE
(
"%p
\n
"
,
cursor
);
...
...
@@ -124,16 +118,11 @@ HCURSOR WINAPI NtUserSetCursor( HCURSOR cursor )
req
->
flags
=
SET_CURSOR_HANDLE
;
req
->
handle
=
wine_server_user_handle
(
cursor
);
if
((
ret
=
!
wine_server_call_err
(
req
)))
{
old_cursor
=
wine_server_ptr_handle
(
reply
->
prev_handle
);
show_count
=
reply
->
prev_count
;
}
}
SERVER_END_REQ
;
if
(
!
ret
)
return
0
;
user_driver
->
pSetCursor
(
0
,
show_count
>=
0
?
cursor
:
0
);
if
(
!
(
obj
=
get_icon_ptr
(
old_cursor
)))
return
0
;
release_user_handle_ptr
(
obj
);
return
old_cursor
;
...
...
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