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
9dfd95c6
Commit
9dfd95c6
authored
Feb 13, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi: Implement dxgi_adapter_SetPrivateData().
parent
849149d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
adapter.c
dlls/dxgi/adapter.c
+8
-4
dxgi_private.h
dlls/dxgi/dxgi_private.h
+1
-0
No files found.
dlls/dxgi/adapter.c
View file @
9dfd95c6
...
...
@@ -69,6 +69,7 @@ static ULONG STDMETHODCALLTYPE dxgi_adapter_Release(IDXGIAdapter1 *iface)
if
(
!
refcount
)
{
IDXGIOutput_Release
(
adapter
->
output
);
wined3d_private_store_cleanup
(
&
adapter
->
private_store
);
HeapFree
(
GetProcessHeap
(),
0
,
adapter
);
}
...
...
@@ -78,9 +79,11 @@ static ULONG STDMETHODCALLTYPE dxgi_adapter_Release(IDXGIAdapter1 *iface)
static
HRESULT
STDMETHODCALLTYPE
dxgi_adapter_SetPrivateData
(
IDXGIAdapter1
*
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_adapter
*
adapter
=
impl_from_IDXGIAdapter1
(
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
(
&
adapter
->
private_store
,
guid
,
data_size
,
data
);
}
static
HRESULT
STDMETHODCALLTYPE
dxgi_adapter_SetPrivateDataInterface
(
IDXGIAdapter1
*
iface
,
...
...
@@ -228,11 +231,12 @@ HRESULT dxgi_adapter_init(struct dxgi_adapter *adapter, struct dxgi_factory *par
adapter
->
IDXGIAdapter1_iface
.
lpVtbl
=
&
dxgi_adapter_vtbl
;
adapter
->
parent
=
parent
;
adapter
->
refcount
=
1
;
wined3d_private_store_init
(
&
adapter
->
private_store
);
adapter
->
ordinal
=
ordinal
;
output
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
output
));
if
(
!
output
)
if
(
!
(
output
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
output
))))
{
wined3d_private_store_cleanup
(
&
adapter
->
private_store
);
return
E_OUTOFMEMORY
;
}
dxgi_output_init
(
output
,
adapter
);
...
...
dlls/dxgi/dxgi_private.h
View file @
9dfd95c6
...
...
@@ -129,6 +129,7 @@ struct dxgi_adapter
IDXGIAdapter1
IDXGIAdapter1_iface
;
struct
dxgi_factory
*
parent
;
LONG
refcount
;
struct
wined3d_private_store
private_store
;
UINT
ordinal
;
IDXGIOutput
*
output
;
};
...
...
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