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
0dbbe8da
Commit
0dbbe8da
authored
Apr 19, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/evr: Set initial output window size for the presenter.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
da5248bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
Makefile.in
dlls/mf/Makefile.in
+1
-1
evr.c
dlls/mf/evr.c
+5
-1
No files found.
dlls/mf/Makefile.in
View file @
0dbbe8da
MODULE
=
mf.dll
IMPORTLIB
=
mf
IMPORTS
=
advapi32 mfplat ole32 uuid mfuuid strmiids
DELAYIMPORTS
=
evr
DELAYIMPORTS
=
evr
user32
EXTRADLLFLAGS
=
-mno-cygwin
-Wb
,--prefer-native
...
...
dlls/mf/evr.c
View file @
0dbbe8da
...
...
@@ -1611,11 +1611,15 @@ static HRESULT video_renderer_configure_mixer(struct video_renderer *renderer)
static
HRESULT
video_renderer_configure_presenter
(
struct
video_renderer
*
renderer
)
{
IMFVideoDisplayControl
*
control
;
RECT
rect
=
{
0
};
HRESULT
hr
;
if
(
SUCCEEDED
(
IMFVideoPresenter_QueryInterface
(
renderer
->
presenter
,
&
IID_IMFVideoDisplayControl
,
(
void
**
)
&
control
)))
{
IMFVideoDisplayControl_SetVideoWindow
(
control
,
renderer
->
window
);
GetClientRect
(
renderer
->
window
,
&
rect
);
if
(
SUCCEEDED
(
hr
=
IMFVideoDisplayControl_SetVideoWindow
(
control
,
renderer
->
window
)))
hr
=
IMFVideoDisplayControl_SetVideoPosition
(
control
,
NULL
,
&
rect
);
IMFVideoDisplayControl_Release
(
control
);
}
...
...
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