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
59ffc7bc
Commit
59ffc7bc
authored
Feb 17, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi: Implement dxgi_swapchain_SetPrivateData().
parent
9bdc1533
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
dxgi_private.h
dlls/dxgi/dxgi_private.h
+1
-0
swapchain.c
dlls/dxgi/swapchain.c
+9
-2
No files found.
dlls/dxgi/dxgi_private.h
View file @
59ffc7bc
...
...
@@ -144,6 +144,7 @@ struct dxgi_swapchain
{
IDXGISwapChain
IDXGISwapChain_iface
;
LONG
refcount
;
struct
wined3d_private_store
private_store
;
struct
wined3d_swapchain
*
wined3d_swapchain
;
};
...
...
dlls/dxgi/swapchain.c
View file @
59ffc7bc
...
...
@@ -82,9 +82,11 @@ static ULONG STDMETHODCALLTYPE dxgi_swapchain_Release(IDXGISwapChain *iface)
static
HRESULT
STDMETHODCALLTYPE
dxgi_swapchain_SetPrivateData
(
IDXGISwapChain
*
iface
,
REFGUID
guid
,
UINT
data_size
,
const
void
*
data
)
{
FIXME
(
"iface %p, guid %s, data_size %u, data %p stub!
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
struct
dxgi_swapchain
*
swapchain
=
impl_from_IDXGISwapChain
(
iface
);
return
E_NOTIMPL
;
TRACE
(
"iface %p, guid %s, data_size %u, data %p.
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
return
dxgi_set_private_data
(
&
swapchain
->
private_store
,
guid
,
data_size
,
data
);
}
static
HRESULT
STDMETHODCALLTYPE
dxgi_swapchain_SetPrivateDataInterface
(
IDXGISwapChain
*
iface
,
...
...
@@ -276,6 +278,9 @@ static const struct IDXGISwapChainVtbl dxgi_swapchain_vtbl =
static
void
STDMETHODCALLTYPE
dxgi_swapchain_wined3d_object_released
(
void
*
parent
)
{
struct
dxgi_swapchain
*
swapchain
=
parent
;
wined3d_private_store_cleanup
(
&
swapchain
->
private_store
);
HeapFree
(
GetProcessHeap
(),
0
,
parent
);
}
...
...
@@ -291,11 +296,13 @@ HRESULT dxgi_swapchain_init(struct dxgi_swapchain *swapchain, struct dxgi_device
swapchain
->
IDXGISwapChain_iface
.
lpVtbl
=
&
dxgi_swapchain_vtbl
;
swapchain
->
refcount
=
1
;
wined3d_private_store_init
(
&
swapchain
->
private_store
);
if
(
FAILED
(
hr
=
wined3d_swapchain_create
(
device
->
wined3d_device
,
desc
,
swapchain
,
&
dxgi_swapchain_wined3d_parent_ops
,
&
swapchain
->
wined3d_swapchain
)))
{
WARN
(
"Failed to create wined3d swapchain, hr %#x.
\n
"
,
hr
);
wined3d_private_store_cleanup
(
&
swapchain
->
private_store
);
return
hr
;
}
...
...
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