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
ee8cb4f7
Commit
ee8cb4f7
authored
Mar 11, 2011
by
Erich Hoover
Committed by
Alexandre Julliard
Mar 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Add a convenience function for retrieving the number of steps in a cursor.
parent
0bb1aadb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
cursoricon.c
dlls/user32/cursoricon.c
+9
-4
No files found.
dlls/user32/cursoricon.c
View file @
ee8cb4f7
...
...
@@ -145,6 +145,11 @@ static void release_icon_frame( struct cursoricon_object *obj, int istep, struct
/* placeholder */
}
static
UINT
get_icon_steps
(
struct
cursoricon_object
*
obj
)
{
return
obj
->
num_steps
;
}
static
BOOL
free_icon_handle
(
HICON
handle
)
{
struct
cursoricon_object
*
obj
=
free_user_handle
(
handle
,
USER_ICON
);
...
...
@@ -1794,7 +1799,7 @@ HCURSOR WINAPI GetCursorFrameInfo(HCURSOR hCursor, DWORD unk1, DWORD istep, DWOR
/* Important Note: Sequences are not currently supported, so this implementation
* will not properly handle all cases. */
if
(
istep
<
ptr
->
num_steps
||
ptr
->
num_frames
==
1
)
if
(
istep
<
get_icon_steps
(
ptr
)
||
ptr
->
num_frames
==
1
)
{
ret
=
hCursor
;
if
(
ptr
->
num_frames
==
1
)
...
...
@@ -1807,10 +1812,10 @@ HCURSOR WINAPI GetCursorFrameInfo(HCURSOR hCursor, DWORD unk1, DWORD istep, DWOR
struct
cursoricon_frame
*
frame
;
frame
=
get_icon_frame
(
ptr
,
istep
);
if
(
ptr
->
num_steps
==
1
)
if
(
get_icon_steps
(
ptr
)
==
1
)
*
num_steps
=
~
0
;
else
*
num_steps
=
ptr
->
num_steps
;
*
num_steps
=
get_icon_steps
(
ptr
)
;
/* If this specific frame does not have a delay then use the global delay */
if
(
frame
->
delay
==
~
0
)
*
rate_jiffies
=
ptr
->
delay
;
...
...
@@ -2092,7 +2097,7 @@ BOOL WINAPI DrawIconEx( HDC hdc, INT x0, INT y0, HICON hIcon,
hdc
,
x0
,
y0
,
hIcon
,
cxWidth
,
cyWidth
,
istep
,
hbr
,
flags
);
if
(
!
(
ptr
=
get_icon_ptr
(
hIcon
)))
return
FALSE
;
if
(
istep
>=
ptr
->
num_steps
)
if
(
istep
>=
get_icon_steps
(
ptr
)
)
{
TRACE_
(
icon
)(
"Stepped past end of animated frames=%d
\n
"
,
istep
);
release_icon_ptr
(
hIcon
,
ptr
);
...
...
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