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
1030d412
Commit
1030d412
authored
Jan 16, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Jan 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Support seeking to a particular frame.
In this case just draw the frame without starting the timer thread of setting a timer and without sending any notifications.
parent
92dde895
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
animate.c
dlls/comctl32/animate.c
+15
-2
No files found.
dlls/comctl32/animate.c
View file @
1030d412
...
...
@@ -145,6 +145,8 @@ static BOOL ANIMATE_LoadFileW(ANIMATE_INFO *infoPtr, LPWSTR lpName)
static
BOOL
ANIMATE_DoStop
(
ANIMATE_INFO
*
infoPtr
)
{
BOOL
stopped
=
FALSE
;
EnterCriticalSection
(
&
infoPtr
->
cs
);
/* should stop playing */
...
...
@@ -167,15 +169,18 @@ static BOOL ANIMATE_DoStop(ANIMATE_INFO *infoPtr)
CloseHandle
(
handle
);
CloseHandle
(
infoPtr
->
hStopEvent
);
infoPtr
->
hStopEvent
=
0
;
stopped
=
TRUE
;
}
if
(
infoPtr
->
uTimer
)
{
KillTimer
(
infoPtr
->
hwndSelf
,
infoPtr
->
uTimer
);
infoPtr
->
uTimer
=
0
;
stopped
=
TRUE
;
}
LeaveCriticalSection
(
&
infoPtr
->
cs
);
ANIMATE_Notify
(
infoPtr
,
ACN_STOP
);
if
(
stopped
)
ANIMATE_Notify
(
infoPtr
,
ACN_STOP
);
return
TRUE
;
}
...
...
@@ -429,12 +434,20 @@ static LRESULT ANIMATE_Play(ANIMATE_INFO *infoPtr, UINT cRepeat, WORD wFrom, WOR
TRACE
(
"(repeat=%d from=%d to=%d);
\n
"
,
infoPtr
->
nLoop
,
infoPtr
->
nFromFrame
,
infoPtr
->
nToFrame
);
if
(
infoPtr
->
nFromFrame
>
=
infoPtr
->
nToFrame
||
if
(
infoPtr
->
nFromFrame
>
infoPtr
->
nToFrame
||
infoPtr
->
nToFrame
>=
infoPtr
->
mah
.
dwTotalFrames
)
return
FALSE
;
infoPtr
->
currFrame
=
infoPtr
->
nFromFrame
;
/* seek - doesn't need to start a thread or set a timer and neither
* does it send a notification */
if
(
infoPtr
->
nFromFrame
==
infoPtr
->
nToFrame
)
{
ANIMATE_DrawFrame
(
infoPtr
);
return
TRUE
;
}
if
(
infoPtr
->
dwStyle
&
ACS_TIMER
)
{
TRACE
(
"Using a timer
\n
"
);
...
...
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