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
2a026493
Commit
2a026493
authored
Mar 05, 2011
by
Erich Hoover
Committed by
Alexandre Julliard
Mar 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Use GetCursorFrameInfo to obtain animated frame delay.
parent
e776f3cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
mouse.c
dlls/winex11.drv/mouse.c
+8
-1
No files found.
dlls/winex11.drv/mouse.c
View file @
2a026493
...
...
@@ -296,6 +296,7 @@ static XcursorImage *create_xcursor_frame( HDC hdc, const ICONINFOEXW *iinfo, HA
int
width
,
int
height
,
int
istep
)
{
XcursorImage
*
image
,
*
ret
=
NULL
;
DWORD
delay_jiffies
,
is_static
;
int
x
,
y
,
i
,
has_alpha
;
XcursorPixel
*
ptr
;
...
...
@@ -310,7 +311,13 @@ static XcursorImage *create_xcursor_frame( HDC hdc, const ICONINFOEXW *iinfo, HA
image
->
xhot
=
iinfo
->
xHotspot
;
image
->
yhot
=
iinfo
->
yHotspot
;
image
->
delay
=
100
;
/* TODO: find a way to get the proper delay */
/* TODO: Handle animated cursors that use multiple rates */
image
->
delay
=
100
;
/* fallback delay, 100 ms */
if
(
GetCursorFrameInfo
(
icon
,
0x0
/* unknown parameter */
,
0
/* obtain first rate */
,
&
delay_jiffies
,
&
is_static
)
!=
0
)
image
->
delay
=
(
100
*
delay_jiffies
)
/
6
;
/* convert jiffies (1/60s) to milliseconds */
else
WARN
(
"Failed to retrieve animated cursor framerate.
\n
"
);
/* draw the cursor frame to a temporary buffer then copy it into the XcursorImage */
memset
(
color_bits
,
0x00
,
color_size
);
...
...
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