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
3d28b019
Commit
3d28b019
authored
Jan 28, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi: Implement IDXGIFactory1.
parent
ac84e9b7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
8 deletions
+28
-8
factory.c
dlls/dxgi/factory.c
+27
-7
winedxgi.idl
include/wine/winedxgi.idl
+1
-1
No files found.
dlls/dxgi/factory.c
View file @
3d28b019
...
...
@@ -38,6 +38,7 @@ static HRESULT STDMETHODCALLTYPE dxgi_factory_QueryInterface(IWineDXGIFactory *i
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDXGIObject
)
||
IsEqualGUID
(
riid
,
&
IID_IDXGIFactory
)
||
IsEqualGUID
(
riid
,
&
IID_IDXGIFactory1
)
||
IsEqualGUID
(
riid
,
&
IID_IWineDXGIFactory
))
{
IUnknown_AddRef
(
iface
);
...
...
@@ -124,29 +125,38 @@ static HRESULT STDMETHODCALLTYPE dxgi_factory_GetParent(IWineDXGIFactory *iface,
/* IDXGIFactory methods */
static
HRESULT
STDMETHODCALLTYPE
dxgi_factory_EnumAdapters
(
IWineDXGIFactory
*
iface
,
UINT
adapter_idx
,
IDXGIAdapter
**
adapter
)
static
HRESULT
STDMETHODCALLTYPE
dxgi_factory_EnumAdapters
1
(
IWineDXGIFactory
*
iface
,
UINT
adapter_idx
,
IDXGIAdapter
1
**
adapter
)
{
struct
dxgi_factory
*
This
=
impl_from_IWineDXGIFactory
(
iface
);
struct
dxgi_factory
*
factory
=
impl_from_IWineDXGIFactory
(
iface
);
TRACE
(
"iface %p, adapter_idx %u, adapter %p
\n
"
,
iface
,
adapter_idx
,
adapter
);
if
(
!
adapter
)
return
DXGI_ERROR_INVALID_CALL
;
if
(
!
adapter
)
return
DXGI_ERROR_INVALID_CALL
;
if
(
adapter_idx
>=
This
->
adapter_count
)
if
(
adapter_idx
>=
factory
->
adapter_count
)
{
*
adapter
=
NULL
;
return
DXGI_ERROR_NOT_FOUND
;
}
*
adapter
=
(
IDXGIAdapter
*
)
This
->
adapters
[
adapter_idx
];
IDXGIAdapter_AddRef
(
*
adapter
);
*
adapter
=
(
IDXGIAdapter
1
*
)
factory
->
adapters
[
adapter_idx
];
IDXGIAdapter
1
_AddRef
(
*
adapter
);
TRACE
(
"Returning adapter %p
\n
"
,
*
adapter
);
return
S_OK
;
}
static
HRESULT
STDMETHODCALLTYPE
dxgi_factory_EnumAdapters
(
IWineDXGIFactory
*
iface
,
UINT
adapter_idx
,
IDXGIAdapter
**
adapter
)
{
TRACE
(
"iface %p, adapter_idx %u, adapter %p
\n
"
,
iface
,
adapter_idx
,
adapter
);
return
dxgi_factory_EnumAdapters1
(
iface
,
adapter_idx
,
(
IDXGIAdapter1
**
)
adapter
);
}
static
HRESULT
STDMETHODCALLTYPE
dxgi_factory_MakeWindowAssociation
(
IWineDXGIFactory
*
iface
,
HWND
window
,
UINT
flags
)
{
FIXME
(
"iface %p, window %p, flags %#x stub!
\n\n
"
,
iface
,
window
,
flags
);
...
...
@@ -263,6 +273,13 @@ static HRESULT STDMETHODCALLTYPE dxgi_factory_CreateSoftwareAdapter(IWineDXGIFac
return
E_NOTIMPL
;
}
static
BOOL
STDMETHODCALLTYPE
dxgi_factory_IsCurrent
(
IWineDXGIFactory
*
iface
)
{
FIXME
(
"iface %p stub!
\n
"
,
iface
);
return
TRUE
;
}
/* IWineDXGIFactory methods */
static
struct
wined3d
*
STDMETHODCALLTYPE
dxgi_factory_get_wined3d
(
IWineDXGIFactory
*
iface
)
...
...
@@ -294,6 +311,9 @@ static const struct IWineDXGIFactoryVtbl dxgi_factory_vtbl =
dxgi_factory_GetWindowAssociation
,
dxgi_factory_CreateSwapChain
,
dxgi_factory_CreateSoftwareAdapter
,
/* IDXGIFactory1 methods */
dxgi_factory_EnumAdapters1
,
dxgi_factory_IsCurrent
,
/* IWineDXGIFactory methods */
dxgi_factory_get_wined3d
,
};
...
...
include/wine/winedxgi.idl
View file @
3d28b019
...
...
@@ -23,7 +23,7 @@ import "dxgi.idl";
local
,
uuid
(
a07ad9ab
-
fb01
-
4574
-
8b
fb
-
0
a70a7373f04
)
]
interface
IWineDXGIFactory
:
IDXGIFactory
interface
IWineDXGIFactory
:
IDXGIFactory
1
{
struct
wined3d
*
get_wined3d
()
;
}
...
...
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