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
229a8dfb
Commit
229a8dfb
authored
Oct 18, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/videorenderer: Get rid of CreateRenderingSubsystem().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b546ac39
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
17 deletions
+5
-17
videorenderer.c
dlls/quartz/videorenderer.c
+5
-17
No files found.
dlls/quartz/videorenderer.c
View file @
229a8dfb
...
...
@@ -82,21 +82,6 @@ static inline VideoRendererImpl *impl_from_BaseControlVideo(BaseControlVideo *if
return
CONTAINING_RECORD
(
iface
,
VideoRendererImpl
,
baseControlVideo
);
}
static
BOOL
CreateRenderingSubsystem
(
VideoRendererImpl
*
This
)
{
This
->
hEvent
=
CreateEventW
(
NULL
,
TRUE
,
FALSE
,
NULL
);
if
(
!
This
->
hEvent
)
return
FALSE
;
if
(
FAILED
(
BaseWindowImpl_PrepareWindow
(
&
This
->
baseControlWindow
.
baseWindow
)))
{
CloseHandle
(
This
->
hEvent
);
return
FALSE
;
}
return
TRUE
;
}
static
void
VideoRenderer_AutoShowWindow
(
VideoRendererImpl
*
This
)
{
if
(
!
This
->
init
&&
(
!
This
->
WindowPos
.
right
||
!
This
->
WindowPos
.
top
))
...
...
@@ -873,8 +858,11 @@ HRESULT VideoRenderer_create(IUnknown *outer, void **out)
if
(
FAILED
(
hr
))
goto
fail
;
if
(
!
CreateRenderingSubsystem
(
pVideoRenderer
))
{
hr
=
E_FAIL
;
pVideoRenderer
->
hEvent
=
CreateEventW
(
NULL
,
TRUE
,
FALSE
,
NULL
);
if
(
FAILED
(
hr
=
BaseWindowImpl_PrepareWindow
(
&
pVideoRenderer
->
baseControlWindow
.
baseWindow
)))
{
CloseHandle
(
pVideoRenderer
->
hEvent
);
goto
fail
;
}
...
...
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