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
ba532a3e
Commit
ba532a3e
authored
Nov 20, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi: Implement IDXGIDevice::GetAdapter().
parent
ba78f072
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
device.c
dlls/dxgi/device.c
+17
-2
No files found.
dlls/dxgi/device.c
View file @
ba532a3e
...
...
@@ -117,9 +117,24 @@ static HRESULT STDMETHODCALLTYPE dxgi_device_GetParent(IDXGIDevice *iface, REFII
static
HRESULT
STDMETHODCALLTYPE
dxgi_device_GetAdapter
(
IDXGIDevice
*
iface
,
IDXGIAdapter
**
adapter
)
{
FIXME
(
"iface %p, adapter %p stub!
\n
"
,
iface
,
adapter
);
struct
dxgi_device
*
This
=
(
struct
dxgi_device
*
)
iface
;
WINED3DDEVICE_CREATION_PARAMETERS
create_parameters
;
HRESULT
hr
;
return
E_NOTIMPL
;
TRACE
(
"iface %p, adapter %p
\n
"
,
iface
,
adapter
);
EnterCriticalSection
(
&
dxgi_cs
);
hr
=
IWineD3DDevice_GetCreationParameters
(
This
->
wined3d_device
,
&
create_parameters
);
if
(
FAILED
(
hr
))
{
LeaveCriticalSection
(
&
dxgi_cs
);
return
hr
;
}
LeaveCriticalSection
(
&
dxgi_cs
);
return
IWineDXGIFactory_EnumAdapters
(
This
->
factory
,
create_parameters
.
AdapterOrdinal
,
adapter
);
}
static
HRESULT
STDMETHODCALLTYPE
dxgi_device_CreateSurface
(
IDXGIDevice
*
iface
,
...
...
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