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
aa85b4c6
Commit
aa85b4c6
authored
Dec 03, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi: Implement IDXGIOutput::GetParent().
parent
77933a92
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
adapter.c
dlls/dxgi/adapter.c
+1
-1
dxgi_private.h
dlls/dxgi/dxgi_private.h
+2
-1
output.c
dlls/dxgi/output.c
+6
-3
No files found.
dlls/dxgi/adapter.c
View file @
aa85b4c6
...
...
@@ -189,7 +189,7 @@ HRESULT dxgi_adapter_init(struct dxgi_adapter *adapter, IDXGIFactory *parent, UI
{
return
E_OUTOFMEMORY
;
}
dxgi_output_init
(
output
);
dxgi_output_init
(
output
,
adapter
);
adapter
->
output
=
(
IDXGIOutput
*
)
output
;
return
S_OK
;
...
...
dlls/dxgi/dxgi_private.h
View file @
aa85b4c6
...
...
@@ -102,9 +102,10 @@ struct dxgi_output
{
const
struct
IDXGIOutputVtbl
*
vtbl
;
LONG
refcount
;
struct
dxgi_adapter
*
adapter
;
};
void
dxgi_output_init
(
struct
dxgi_output
*
output
)
DECLSPEC_HIDDEN
;
void
dxgi_output_init
(
struct
dxgi_output
*
output
,
struct
dxgi_adapter
*
adapter
)
DECLSPEC_HIDDEN
;
/* IDXGIAdapter */
struct
dxgi_adapter
...
...
dlls/dxgi/output.c
View file @
aa85b4c6
...
...
@@ -98,9 +98,11 @@ static HRESULT STDMETHODCALLTYPE dxgi_output_GetPrivateData(IDXGIOutput *iface,
static
HRESULT
STDMETHODCALLTYPE
dxgi_output_GetParent
(
IDXGIOutput
*
iface
,
REFIID
riid
,
void
**
parent
)
{
FIXME
(
"iface %p, riid %s, parent %p stub!
\n
"
,
iface
,
debugstr_guid
(
riid
),
parent
)
;
struct
dxgi_output
*
This
=
(
struct
dxgi_output
*
)
iface
;
return
E_NOTIMPL
;
TRACE
(
"iface %p, riid %s, parent %p.
\n
"
,
iface
,
debugstr_guid
(
riid
),
parent
);
return
IDXGIAdapter_QueryInterface
((
IDXGIAdapter
*
)
This
->
adapter
,
riid
,
parent
);
}
/* IDXGIOutput methods */
...
...
@@ -217,8 +219,9 @@ static const struct IDXGIOutputVtbl dxgi_output_vtbl =
dxgi_output_GetFrameStatistics
,
};
void
dxgi_output_init
(
struct
dxgi_output
*
output
)
void
dxgi_output_init
(
struct
dxgi_output
*
output
,
struct
dxgi_adapter
*
adapter
)
{
output
->
vtbl
=
&
dxgi_output_vtbl
;
output
->
refcount
=
1
;
output
->
adapter
=
adapter
;
}
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