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
84a1a88c
Commit
84a1a88c
authored
Mar 11, 2008
by
Huw Davies
Committed by
Alexandre Julliard
Mar 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Get the background brush in ACM_OPEN where native does.
parent
a6d7b6fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
17 deletions
+8
-17
animate.c
dlls/comctl32/animate.c
+8
-17
No files found.
dlls/comctl32/animate.c
View file @
84a1a88c
...
...
@@ -379,10 +379,6 @@ static LRESULT ANIMATE_Timer(ANIMATE_INFO *infoPtr)
if
((
hDC
=
GetDC
(
infoPtr
->
hwndSelf
))
!=
0
)
{
if
(
infoPtr
->
dwStyle
&
ACS_TRANSPARENT
)
infoPtr
->
hbrushBG
=
(
HBRUSH
)
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_CTLCOLORSTATIC
,
(
WPARAM
)
hDC
,
(
LPARAM
)
infoPtr
->
hwndSelf
);
EnterCriticalSection
(
&
infoPtr
->
cs
);
ANIMATE_DrawFrame
(
infoPtr
,
hDC
);
LeaveCriticalSection
(
&
infoPtr
->
cs
);
...
...
@@ -403,10 +399,6 @@ static DWORD CALLBACK ANIMATE_AnimationThread(LPVOID ptr_)
{
HDC
hDC
=
GetDC
(
infoPtr
->
hwndSelf
);
if
(
infoPtr
->
dwStyle
&
ACS_TRANSPARENT
)
infoPtr
->
hbrushBG
=
(
HBRUSH
)
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_CTLCOLORSTATIC
,
(
WPARAM
)
hDC
,
(
LPARAM
)
infoPtr
->
hwndSelf
);
EnterCriticalSection
(
&
infoPtr
->
cs
);
ANIMATE_DrawFrame
(
infoPtr
,
hDC
);
timeout
=
infoPtr
->
mah
.
dwMicroSecPerFrame
;
...
...
@@ -461,10 +453,6 @@ static LRESULT ANIMATE_Play(ANIMATE_INFO *infoPtr, UINT cRepeat, WORD wFrom, WOR
if
((
hDC
=
GetDC
(
infoPtr
->
hwndSelf
))
!=
0
)
{
if
(
infoPtr
->
dwStyle
&
ACS_TRANSPARENT
)
infoPtr
->
hbrushBG
=
(
HBRUSH
)
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_CTLCOLORSTATIC
,
(
WPARAM
)
hDC
,
(
LPARAM
)
infoPtr
->
hwndSelf
);
ANIMATE_DrawFrame
(
infoPtr
,
hDC
);
ReleaseDC
(
infoPtr
->
hwndSelf
,
hDC
);
...
...
@@ -481,11 +469,6 @@ static LRESULT ANIMATE_Play(ANIMATE_INFO *infoPtr, UINT cRepeat, WORD wFrom, WOR
}
else
{
if
(
infoPtr
->
dwStyle
&
ACS_TRANSPARENT
)
infoPtr
->
hbrushBG
=
(
HBRUSH
)
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_CTLCOLORSTATIC
,
0
,
(
LPARAM
)
infoPtr
->
hwndSelf
);
TRACE
(
"Using an animation thread
\n
"
);
infoPtr
->
hStopEvent
=
CreateEventW
(
NULL
,
TRUE
,
FALSE
,
NULL
);
infoPtr
->
hThread
=
CreateThread
(
0
,
0
,
ANIMATE_AnimationThread
,
...
...
@@ -718,6 +701,8 @@ static BOOL ANIMATE_GetAviCodec(ANIMATE_INFO *infoPtr)
static
BOOL
ANIMATE_OpenW
(
ANIMATE_INFO
*
infoPtr
,
HINSTANCE
hInstance
,
LPWSTR
lpszName
)
{
HDC
hdc
;
ANIMATE_Free
(
infoPtr
);
if
(
!
lpszName
)
...
...
@@ -767,6 +752,12 @@ static BOOL ANIMATE_OpenW(ANIMATE_INFO *infoPtr, HINSTANCE hInstance, LPWSTR lps
return
FALSE
;
}
hdc
=
GetDC
(
infoPtr
->
hwndSelf
);
/* native looks at the top left pixel of the first frame here too. */
infoPtr
->
hbrushBG
=
(
HBRUSH
)
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_CTLCOLORSTATIC
,
(
WPARAM
)
hdc
,
(
LPARAM
)
infoPtr
->
hwndSelf
);
ReleaseDC
(
infoPtr
->
hwndSelf
,
hdc
);
if
(
!
(
infoPtr
->
dwStyle
&
ACS_CENTER
))
SetWindowPos
(
infoPtr
->
hwndSelf
,
0
,
0
,
0
,
infoPtr
->
mah
.
dwWidth
,
infoPtr
->
mah
.
dwHeight
,
SWP_NOACTIVATE
|
SWP_NOMOVE
|
SWP_NOZORDER
);
...
...
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