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
3c0b0cc8
Commit
3c0b0cc8
authored
May 11, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
May 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/vmr9: Render to the clipping window in windowless mode.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
93913d3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
vmr9.c
dlls/quartz/vmr9.c
+10
-4
No files found.
dlls/quartz/vmr9.c
View file @
3c0b0cc8
...
...
@@ -1755,7 +1755,7 @@ static HRESULT WINAPI VMR9WindowlessControl_RepaintVideo(IVMRWindowlessControl9
}
/* Windowless extension */
hr
=
IDirect3DDevice9_Present
(
This
->
allocator_d3d9_dev
,
NULL
,
NULL
,
This
->
window
.
hwnd
,
NULL
);
hr
=
IDirect3DDevice9_Present
(
This
->
allocator_d3d9_dev
,
NULL
,
NULL
,
NULL
,
NULL
);
LeaveCriticalSection
(
&
This
->
renderer
.
filter
.
csFilter
);
return
hr
;
...
...
@@ -2451,7 +2451,7 @@ static HRESULT WINAPI VMR9_ImagePresenter_PresentImage(IVMRImagePresenter9 *ifac
if
(
render
&&
SUCCEEDED
(
hr
))
{
hr
=
IDirect3DDevice9_Present
(
This
->
d3d9_dev
,
&
This
->
pVMR9
->
window
.
src
,
&
This
->
pVMR9
->
window
.
dst
,
This
->
pVMR9
->
window
.
hwnd
,
NULL
);
&
This
->
pVMR9
->
window
.
dst
,
NULL
,
NULL
);
if
(
FAILED
(
hr
))
FIXME
(
"Presenting image: %08x
\n
"
,
hr
);
}
...
...
@@ -2562,17 +2562,23 @@ static BOOL CreateRenderingWindow(struct default_presenter *This, VMR9Allocation
{
D3DPRESENT_PARAMETERS
d3dpp
;
DWORD
d3d9_adapter
;
HWND
window
;
HRESULT
hr
;
TRACE
(
"(%p)->()
\n
"
,
This
);
if
(
This
->
pVMR9
->
mode
==
VMR9Mode_Windowed
)
window
=
This
->
pVMR9
->
window
.
hwnd
;
else
window
=
This
->
pVMR9
->
clipping_window
;
/* Obtain a monitor and d3d9 device */
d3d9_adapter
=
d3d9_adapter_from_hwnd
(
This
->
d3d9_ptr
,
This
->
pVMR9
->
window
.
hwnd
,
&
This
->
hMon
);
d3d9_adapter
=
d3d9_adapter_from_hwnd
(
This
->
d3d9_ptr
,
window
,
&
This
->
hMon
);
/* Now try to create the d3d9 device */
ZeroMemory
(
&
d3dpp
,
sizeof
(
d3dpp
));
d3dpp
.
Windowed
=
TRUE
;
d3dpp
.
hDeviceWindow
=
This
->
pVMR9
->
window
.
hwnd
;
d3dpp
.
hDeviceWindow
=
window
;
d3dpp
.
SwapEffect
=
D3DSWAPEFFECT_COPY
;
d3dpp
.
BackBufferWidth
=
info
->
dwWidth
;
d3dpp
.
BackBufferHeight
=
info
->
dwHeight
;
...
...
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