Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1988ed16
Commit
1988ed16
authored
Nov 18, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi: Implement IDXGIFactory::EnumAdapters().
parent
808bbeb0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
device.c
dlls/d3d10/tests/device.c
+2
-2
factory.c
dlls/dxgi/factory.c
+17
-2
No files found.
dlls/d3d10/tests/device.c
View file @
1988ed16
...
...
@@ -57,11 +57,11 @@ static void test_device_interfaces(ID3D10Device *device)
if
(
SUCCEEDED
(
hr
=
ID3D10Device_QueryInterface
(
device
,
&
IID_IDXGIObject
,
(
void
**
)
&
obj
)))
IUnknown_Release
(
obj
);
todo_wine
ok
(
SUCCEEDED
(
hr
),
"ID3D10Device does not implement IDXGIObject (%#x)
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"ID3D10Device does not implement IDXGIObject (%#x)
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
=
ID3D10Device_QueryInterface
(
device
,
&
IID_IDXGIDevice
,
(
void
**
)
&
obj
)))
IUnknown_Release
(
obj
);
todo_wine
ok
(
SUCCEEDED
(
hr
),
"ID3D10Device does not implement IDXGIDevice (%#x)
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"ID3D10Device does not implement IDXGIDevice (%#x)
\n
"
,
hr
);
}
START_TEST
(
device
)
...
...
dlls/dxgi/factory.c
View file @
1988ed16
...
...
@@ -119,9 +119,24 @@ static HRESULT STDMETHODCALLTYPE dxgi_factory_GetParent(IWineDXGIFactory *iface,
static
HRESULT
STDMETHODCALLTYPE
dxgi_factory_EnumAdapters
(
IWineDXGIFactory
*
iface
,
UINT
adapter_idx
,
IDXGIAdapter
**
adapter
)
{
FIXME
(
"iface %p, adapter_idx %u, adapter %p stub!
\n
"
,
iface
,
adapter_idx
,
adapter
)
;
struct
dxgi_factory
*
This
=
(
struct
dxgi_factory
*
)
iface
;
return
E_NOTIMPL
;
TRACE
(
"iface %p, adapter_idx %u, adapter %p
\n
"
,
iface
,
adapter_idx
,
adapter
);
if
(
!
adapter
)
return
DXGI_ERROR_INVALID_CALL
;
if
(
adapter_idx
>=
This
->
adapter_count
)
{
*
adapter
=
NULL
;
return
DXGI_ERROR_NOT_FOUND
;
}
*
adapter
=
(
IDXGIAdapter
*
)
This
->
adapters
[
adapter_idx
];
IDXGIAdapter_AddRef
(
*
adapter
);
TRACE
(
"Returning adapter %p
\n
"
,
*
adapter
);
return
S_OK
;
}
static
HRESULT
STDMETHODCALLTYPE
dxgi_factory_MakeWindowAssociation
(
IWineDXGIFactory
*
iface
,
HWND
window
,
UINT
flags
)
...
...
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