dxgi: Implement IDXGIAdapter::GetParent().

This commit is contained in:
Henri Verbeet 2008-11-20 13:32:00 +01:00 committed by Alexandre Julliard
parent ba532a3edb
commit 5ee7536448
3 changed files with 6 additions and 2 deletions

View File

@ -99,9 +99,11 @@ static HRESULT STDMETHODCALLTYPE dxgi_adapter_GetPrivateData(IWineDXGIAdapter *i
static HRESULT STDMETHODCALLTYPE dxgi_adapter_GetParent(IWineDXGIAdapter *iface, REFIID riid, void **parent)
{
FIXME("iface %p, riid %s, parent %p stub!\n", iface, debugstr_guid(riid), parent);
struct dxgi_adapter *This = (struct dxgi_adapter *)iface;
return E_NOTIMPL;
TRACE("iface %p, riid %s, parent %p\n", iface, debugstr_guid(riid), parent);
return IDXGIFactory_QueryInterface(This->parent, riid, parent);
}
/* IDXGIAdapter methods */

View File

@ -126,6 +126,7 @@ HRESULT WINAPI CreateDXGIFactory(REFIID riid, void **factory)
adapter->vtbl = &dxgi_adapter_vtbl;
adapter->refcount = 1;
adapter->ordinal = i;
adapter->parent = (IDXGIFactory *)object;
object->adapters[i] = (IDXGIAdapter *)adapter;
}

View File

@ -66,6 +66,7 @@ extern const struct IWineDXGIAdapterVtbl dxgi_adapter_vtbl;
struct dxgi_adapter
{
const struct IWineDXGIAdapterVtbl *vtbl;
IDXGIFactory *parent;
LONG refcount;
UINT ordinal;
};