wined3d: Don't require container parents for IWineD3DDeviceParent methods to be COM objects.
This commit is contained in:
parent
aa420ced0e
commit
b9fae5e9a8
|
@ -1320,7 +1320,7 @@ static void STDMETHODCALLTYPE device_parent_WineD3DDeviceCreated(IWineD3DDeviceP
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParent *iface,
|
static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParent *iface,
|
||||||
IUnknown *superior, UINT width, UINT height, enum wined3d_format_id format, DWORD usage,
|
void *container_parent, UINT width, UINT height, enum wined3d_format_id format, DWORD usage,
|
||||||
WINED3DPOOL pool, UINT level, WINED3DCUBEMAP_FACES face, IWineD3DSurface **surface)
|
WINED3DPOOL pool, UINT level, WINED3DCUBEMAP_FACES face, IWineD3DSurface **surface)
|
||||||
{
|
{
|
||||||
struct d3d10_device *This = device_from_device_parent(iface);
|
struct d3d10_device *This = device_from_device_parent(iface);
|
||||||
|
@ -1328,9 +1328,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
|
||||||
D3D10_TEXTURE2D_DESC desc;
|
D3D10_TEXTURE2D_DESC desc;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
FIXME("iface %p, superior %p, width %u, height %u, format %#x, usage %#x,\n"
|
FIXME("iface %p, container_parent %p, width %u, height %u, format %#x, usage %#x,\n"
|
||||||
"\tpool %#x, level %u, face %u, surface %p partial stub!\n",
|
"\tpool %#x, level %u, face %u, surface %p partial stub!\n",
|
||||||
iface, superior, width, height, format, usage, pool, level, face, surface);
|
iface, container_parent, width, height, format, usage, pool, level, face, surface);
|
||||||
|
|
||||||
FIXME("Implement DXGI<->wined3d usage conversion\n");
|
FIXME("Implement DXGI<->wined3d usage conversion\n");
|
||||||
|
|
||||||
|
@ -1361,7 +1361,7 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDeviceParent *iface,
|
static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDeviceParent *iface,
|
||||||
IUnknown *superior, UINT width, UINT height, enum wined3d_format_id format,
|
void *container_parent, UINT width, UINT height, enum wined3d_format_id format,
|
||||||
WINED3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality, BOOL lockable,
|
WINED3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality, BOOL lockable,
|
||||||
IWineD3DSurface **surface)
|
IWineD3DSurface **surface)
|
||||||
{
|
{
|
||||||
|
@ -1370,9 +1370,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDevice
|
||||||
D3D10_TEXTURE2D_DESC desc;
|
D3D10_TEXTURE2D_DESC desc;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
FIXME("iface %p, superior %p, width %u, height %u, format %#x, multisample_type %#x,\n"
|
FIXME("iface %p, container_parent %p, width %u, height %u, format %#x, multisample_type %#x,\n"
|
||||||
"\tmultisample_quality %u, lockable %u, surface %p partial stub!\n",
|
"\tmultisample_quality %u, lockable %u, surface %p partial stub!\n",
|
||||||
iface, superior, width, height, format, multisample_type, multisample_quality, lockable, surface);
|
iface, container_parent, width, height, format, multisample_type, multisample_quality, lockable, surface);
|
||||||
|
|
||||||
FIXME("Implement DXGI<->wined3d usage conversion\n");
|
FIXME("Implement DXGI<->wined3d usage conversion\n");
|
||||||
|
|
||||||
|
@ -1444,13 +1444,13 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateDepthStencilSurface(IWineD3
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT STDMETHODCALLTYPE device_parent_CreateVolume(IWineD3DDeviceParent *iface,
|
static HRESULT STDMETHODCALLTYPE device_parent_CreateVolume(IWineD3DDeviceParent *iface,
|
||||||
IUnknown *superior, UINT width, UINT height, UINT depth, enum wined3d_format_id format,
|
void *container_parent, UINT width, UINT height, UINT depth, enum wined3d_format_id format,
|
||||||
WINED3DPOOL pool, DWORD usage, IWineD3DVolume **volume)
|
WINED3DPOOL pool, DWORD usage, IWineD3DVolume **volume)
|
||||||
{
|
{
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
TRACE("iface %p, superior %p, width %u, height %u, depth %u, format %#x, pool %#x, usage %#x, volume %p.\n",
|
TRACE("iface %p, container_parent %p, width %u, height %u, depth %u, format %#x, pool %#x, usage %#x, volume %p.\n",
|
||||||
iface, superior, width, height, depth, format, pool, usage, volume);
|
iface, container_parent, width, height, depth, format, pool, usage, volume);
|
||||||
|
|
||||||
hr = IWineD3DDevice_CreateVolume(device_from_device_parent(iface)->wined3d_device,
|
hr = IWineD3DDevice_CreateVolume(device_from_device_parent(iface)->wined3d_device,
|
||||||
width, height, depth, usage, format, pool, NULL, &d3d10_subresource_parent_ops, volume);
|
width, height, depth, usage, format, pool, NULL, &d3d10_subresource_parent_ops, volume);
|
||||||
|
|
|
@ -2745,7 +2745,7 @@ static void STDMETHODCALLTYPE device_parent_WineD3DDeviceCreated(IWineD3DDeviceP
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParent *iface,
|
static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParent *iface,
|
||||||
IUnknown *superior, UINT width, UINT height, enum wined3d_format_id format, DWORD usage,
|
void *container_parent, UINT width, UINT height, enum wined3d_format_id format, DWORD usage,
|
||||||
WINED3DPOOL pool, UINT level, WINED3DCUBEMAP_FACES face, IWineD3DSurface **surface)
|
WINED3DPOOL pool, UINT level, WINED3DCUBEMAP_FACES face, IWineD3DSurface **surface)
|
||||||
{
|
{
|
||||||
IDirect3DDevice8Impl *This = impl_from_IWineD3DDeviceParent(iface);
|
IDirect3DDevice8Impl *This = impl_from_IWineD3DDeviceParent(iface);
|
||||||
|
@ -2753,9 +2753,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
|
||||||
BOOL lockable = TRUE;
|
BOOL lockable = TRUE;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
TRACE("iface %p, superior %p, width %u, height %u, format %#x, usage %#x,\n"
|
TRACE("iface %p, container_parent %p, width %u, height %u, format %#x, usage %#x,\n"
|
||||||
"\tpool %#x, level %u, face %u, surface %p\n",
|
"\tpool %#x, level %u, face %u, surface %p\n",
|
||||||
iface, superior, width, height, format, usage, pool, level, face, surface);
|
iface, container_parent, width, height, format, usage, pool, level, face, surface);
|
||||||
|
|
||||||
|
|
||||||
if (pool == WINED3DPOOL_DEFAULT && !(usage & WINED3DUSAGE_DYNAMIC)) lockable = FALSE;
|
if (pool == WINED3DPOOL_DEFAULT && !(usage & WINED3DUSAGE_DYNAMIC)) lockable = FALSE;
|
||||||
|
@ -2772,18 +2772,18 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
|
||||||
*surface = d3d_surface->wineD3DSurface;
|
*surface = d3d_surface->wineD3DSurface;
|
||||||
IWineD3DSurface_AddRef(*surface);
|
IWineD3DSurface_AddRef(*surface);
|
||||||
|
|
||||||
d3d_surface->container = superior;
|
d3d_surface->container = container_parent;
|
||||||
IUnknown_Release(d3d_surface->parentDevice);
|
IUnknown_Release(d3d_surface->parentDevice);
|
||||||
d3d_surface->parentDevice = NULL;
|
d3d_surface->parentDevice = NULL;
|
||||||
|
|
||||||
IDirect3DSurface8_Release((IDirect3DSurface8 *)d3d_surface);
|
IDirect3DSurface8_Release((IDirect3DSurface8 *)d3d_surface);
|
||||||
d3d_surface->forwardReference = superior;
|
d3d_surface->forwardReference = container_parent;
|
||||||
|
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDeviceParent *iface,
|
static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDeviceParent *iface,
|
||||||
IUnknown *superior, UINT width, UINT height, enum wined3d_format_id format,
|
void *container_parent, UINT width, UINT height, enum wined3d_format_id format,
|
||||||
WINED3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality, BOOL lockable,
|
WINED3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality, BOOL lockable,
|
||||||
IWineD3DSurface **surface)
|
IWineD3DSurface **surface)
|
||||||
{
|
{
|
||||||
|
@ -2791,9 +2791,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDevice
|
||||||
IDirect3DSurface8Impl *d3d_surface;
|
IDirect3DSurface8Impl *d3d_surface;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
TRACE("iface %p, superior %p, width %u, height %u, format %#x, multisample_type %#x,\n"
|
TRACE("iface %p, container_parent %p, width %u, height %u, format %#x, multisample_type %#x,\n"
|
||||||
"\tmultisample_quality %u, lockable %u, surface %p\n",
|
"\tmultisample_quality %u, lockable %u, surface %p\n",
|
||||||
iface, superior, width, height, format, multisample_type, multisample_quality, lockable, surface);
|
iface, container_parent, width, height, format, multisample_type, multisample_quality, lockable, surface);
|
||||||
|
|
||||||
hr = IDirect3DDevice8_CreateRenderTarget(&This->IDirect3DDevice8_iface, width, height,
|
hr = IDirect3DDevice8_CreateRenderTarget(&This->IDirect3DDevice8_iface, width, height,
|
||||||
d3dformat_from_wined3dformat(format), multisample_type, lockable, (IDirect3DSurface8 **)&d3d_surface);
|
d3dformat_from_wined3dformat(format), multisample_type, lockable, (IDirect3DSurface8 **)&d3d_surface);
|
||||||
|
@ -2844,15 +2844,15 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateDepthStencilSurface(IWineD3
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT STDMETHODCALLTYPE device_parent_CreateVolume(IWineD3DDeviceParent *iface,
|
static HRESULT STDMETHODCALLTYPE device_parent_CreateVolume(IWineD3DDeviceParent *iface,
|
||||||
IUnknown *superior, UINT width, UINT height, UINT depth, enum wined3d_format_id format,
|
void *container_parent, UINT width, UINT height, UINT depth, enum wined3d_format_id format,
|
||||||
WINED3DPOOL pool, DWORD usage, IWineD3DVolume **volume)
|
WINED3DPOOL pool, DWORD usage, IWineD3DVolume **volume)
|
||||||
{
|
{
|
||||||
IDirect3DDevice8Impl *This = impl_from_IWineD3DDeviceParent(iface);
|
IDirect3DDevice8Impl *This = impl_from_IWineD3DDeviceParent(iface);
|
||||||
IDirect3DVolume8Impl *object;
|
IDirect3DVolume8Impl *object;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
TRACE("iface %p, superior %p, width %u, height %u, depth %u, format %#x, pool %#x, usage %#x, volume %p\n",
|
TRACE("iface %p, container_parent %p, width %u, height %u, depth %u, format %#x, pool %#x, usage %#x, volume %p\n",
|
||||||
iface, superior, width, height, depth, format, pool, usage, volume);
|
iface, container_parent, width, height, depth, format, pool, usage, volume);
|
||||||
|
|
||||||
/* Allocate the storage for the device */
|
/* Allocate the storage for the device */
|
||||||
object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object));
|
object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object));
|
||||||
|
@ -2875,8 +2875,8 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateVolume(IWineD3DDeviceParent
|
||||||
IWineD3DVolume_AddRef(*volume);
|
IWineD3DVolume_AddRef(*volume);
|
||||||
IDirect3DVolume8_Release(&object->IDirect3DVolume8_iface);
|
IDirect3DVolume8_Release(&object->IDirect3DVolume8_iface);
|
||||||
|
|
||||||
object->container = superior;
|
object->container = container_parent;
|
||||||
object->forwardReference = superior;
|
object->forwardReference = container_parent;
|
||||||
|
|
||||||
TRACE("(%p) Created volume %p\n", iface, object);
|
TRACE("(%p) Created volume %p\n", iface, object);
|
||||||
|
|
||||||
|
|
|
@ -3029,7 +3029,7 @@ static void STDMETHODCALLTYPE device_parent_WineD3DDeviceCreated(IWineD3DDeviceP
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParent *iface,
|
static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParent *iface,
|
||||||
IUnknown *superior, UINT width, UINT height, enum wined3d_format_id format, DWORD usage,
|
void *container_parent, UINT width, UINT height, enum wined3d_format_id format, DWORD usage,
|
||||||
WINED3DPOOL pool, UINT level, WINED3DCUBEMAP_FACES face, IWineD3DSurface **surface)
|
WINED3DPOOL pool, UINT level, WINED3DCUBEMAP_FACES face, IWineD3DSurface **surface)
|
||||||
{
|
{
|
||||||
struct IDirect3DDevice9Impl *This = device_from_device_parent(iface);
|
struct IDirect3DDevice9Impl *This = device_from_device_parent(iface);
|
||||||
|
@ -3037,9 +3037,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
|
||||||
BOOL lockable = TRUE;
|
BOOL lockable = TRUE;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
TRACE("iface %p, superior %p, width %u, height %u, format %#x, usage %#x,\n"
|
TRACE("iface %p, container_parent %p, width %u, height %u, format %#x, usage %#x,\n"
|
||||||
"\tpool %#x, level %u, face %u, surface %p\n",
|
"\tpool %#x, level %u, face %u, surface %p\n",
|
||||||
iface, superior, width, height, format, usage, pool, level, face, surface);
|
iface, container_parent, width, height, format, usage, pool, level, face, surface);
|
||||||
|
|
||||||
if (pool == WINED3DPOOL_DEFAULT && !(usage & D3DUSAGE_DYNAMIC))
|
if (pool == WINED3DPOOL_DEFAULT && !(usage & D3DUSAGE_DYNAMIC))
|
||||||
lockable = FALSE;
|
lockable = FALSE;
|
||||||
|
@ -3056,18 +3056,18 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
|
||||||
*surface = d3d_surface->wineD3DSurface;
|
*surface = d3d_surface->wineD3DSurface;
|
||||||
IWineD3DSurface_AddRef(*surface);
|
IWineD3DSurface_AddRef(*surface);
|
||||||
|
|
||||||
d3d_surface->container = superior;
|
d3d_surface->container = container_parent;
|
||||||
IDirect3DDevice9Ex_Release(d3d_surface->parentDevice);
|
IDirect3DDevice9Ex_Release(d3d_surface->parentDevice);
|
||||||
d3d_surface->parentDevice = NULL;
|
d3d_surface->parentDevice = NULL;
|
||||||
|
|
||||||
IDirect3DSurface9_Release((IDirect3DSurface9 *)d3d_surface);
|
IDirect3DSurface9_Release((IDirect3DSurface9 *)d3d_surface);
|
||||||
d3d_surface->forwardReference = superior;
|
d3d_surface->forwardReference = container_parent;
|
||||||
|
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDeviceParent *iface,
|
static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDeviceParent *iface,
|
||||||
IUnknown *superior, UINT width, UINT height, enum wined3d_format_id format,
|
void *container_parent, UINT width, UINT height, enum wined3d_format_id format,
|
||||||
WINED3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality, BOOL lockable,
|
WINED3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality, BOOL lockable,
|
||||||
IWineD3DSurface **surface)
|
IWineD3DSurface **surface)
|
||||||
{
|
{
|
||||||
|
@ -3075,9 +3075,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDevice
|
||||||
IDirect3DSurface9Impl *d3d_surface;
|
IDirect3DSurface9Impl *d3d_surface;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
TRACE("iface %p, superior %p, width %u, height %u, format %#x, multisample_type %#x,\n"
|
TRACE("iface %p, container_parent %p, width %u, height %u, format %#x, multisample_type %#x,\n"
|
||||||
"\tmultisample_quality %u, lockable %u, surface %p\n",
|
"\tmultisample_quality %u, lockable %u, surface %p\n",
|
||||||
iface, superior, width, height, format, multisample_type, multisample_quality, lockable, surface);
|
iface, container_parent, width, height, format, multisample_type, multisample_quality, lockable, surface);
|
||||||
|
|
||||||
hr = IDirect3DDevice9Impl_CreateRenderTarget((IDirect3DDevice9Ex *)This, width, height,
|
hr = IDirect3DDevice9Impl_CreateRenderTarget((IDirect3DDevice9Ex *)This, width, height,
|
||||||
d3dformat_from_wined3dformat(format), multisample_type, multisample_quality, lockable,
|
d3dformat_from_wined3dformat(format), multisample_type, multisample_quality, lockable,
|
||||||
|
@ -3091,7 +3091,7 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDevice
|
||||||
*surface = d3d_surface->wineD3DSurface;
|
*surface = d3d_surface->wineD3DSurface;
|
||||||
IWineD3DSurface_AddRef(*surface);
|
IWineD3DSurface_AddRef(*surface);
|
||||||
|
|
||||||
d3d_surface->container = superior;
|
d3d_surface->container = container_parent;
|
||||||
/* Implicit surfaces are created with an refcount of 0 */
|
/* Implicit surfaces are created with an refcount of 0 */
|
||||||
IDirect3DSurface9_Release((IDirect3DSurface9 *)d3d_surface);
|
IDirect3DSurface9_Release((IDirect3DSurface9 *)d3d_surface);
|
||||||
|
|
||||||
|
@ -3129,15 +3129,15 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateDepthStencilSurface(IWineD3
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT STDMETHODCALLTYPE device_parent_CreateVolume(IWineD3DDeviceParent *iface,
|
static HRESULT STDMETHODCALLTYPE device_parent_CreateVolume(IWineD3DDeviceParent *iface,
|
||||||
IUnknown *superior, UINT width, UINT height, UINT depth, enum wined3d_format_id format,
|
void *container_parent, UINT width, UINT height, UINT depth, enum wined3d_format_id format,
|
||||||
WINED3DPOOL pool, DWORD usage, IWineD3DVolume **volume)
|
WINED3DPOOL pool, DWORD usage, IWineD3DVolume **volume)
|
||||||
{
|
{
|
||||||
struct IDirect3DDevice9Impl *This = device_from_device_parent(iface);
|
struct IDirect3DDevice9Impl *This = device_from_device_parent(iface);
|
||||||
IDirect3DVolume9Impl *object;
|
IDirect3DVolume9Impl *object;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
TRACE("iface %p, superior %p, width %u, height %u, depth %u, format %#x, pool %#x, usage %#x, volume %p\n",
|
TRACE("iface %p, container_parent %p, width %u, height %u, depth %u, format %#x, pool %#x, usage %#x, volume %p\n",
|
||||||
iface, superior, width, height, depth, format, pool, usage, volume);
|
iface, container_parent, width, height, depth, format, pool, usage, volume);
|
||||||
|
|
||||||
/* Allocate the storage for the device */
|
/* Allocate the storage for the device */
|
||||||
object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object));
|
object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*object));
|
||||||
|
@ -3160,8 +3160,8 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateVolume(IWineD3DDeviceParent
|
||||||
IWineD3DVolume_AddRef(*volume);
|
IWineD3DVolume_AddRef(*volume);
|
||||||
IDirect3DVolume9_Release((IDirect3DVolume9 *)object);
|
IDirect3DVolume9_Release((IDirect3DVolume9 *)object);
|
||||||
|
|
||||||
object->container = superior;
|
object->container = container_parent;
|
||||||
object->forwardReference = superior;
|
object->forwardReference = container_parent;
|
||||||
|
|
||||||
TRACE("(%p) Created volume %p\n", iface, object);
|
TRACE("(%p) Created volume %p\n", iface, object);
|
||||||
|
|
||||||
|
|
|
@ -5724,7 +5724,7 @@ static void STDMETHODCALLTYPE device_parent_WineD3DDeviceCreated(IWineD3DDeviceP
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParent *iface,
|
static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParent *iface,
|
||||||
IUnknown *superior, UINT width, UINT height, enum wined3d_format_id format, DWORD usage,
|
void *container_parent, UINT width, UINT height, enum wined3d_format_id format, DWORD usage,
|
||||||
WINED3DPOOL pool, UINT level, WINED3DCUBEMAP_FACES face, IWineD3DSurface **surface)
|
WINED3DPOOL pool, UINT level, WINED3DCUBEMAP_FACES face, IWineD3DSurface **surface)
|
||||||
{
|
{
|
||||||
struct IDirectDrawImpl *This = ddraw_from_device_parent(iface);
|
struct IDirectDrawImpl *This = ddraw_from_device_parent(iface);
|
||||||
|
@ -5732,9 +5732,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
|
||||||
UINT i = 0;
|
UINT i = 0;
|
||||||
DDSCAPS2 searchcaps = This->tex_root->surface_desc.ddsCaps;
|
DDSCAPS2 searchcaps = This->tex_root->surface_desc.ddsCaps;
|
||||||
|
|
||||||
TRACE("iface %p, superior %p, width %u, height %u, format %#x, usage %#x,\n"
|
TRACE("iface %p, container_parent %p, width %u, height %u, format %#x, usage %#x,\n"
|
||||||
"\tpool %#x, level %u, face %u, surface %p\n",
|
"\tpool %#x, level %u, face %u, surface %p\n",
|
||||||
iface, superior, width, height, format, usage, pool, level, face, surface);
|
iface, container_parent, width, height, format, usage, pool, level, face, surface);
|
||||||
|
|
||||||
searchcaps.dwCaps2 &= ~DDSCAPS2_CUBEMAP_ALLFACES;
|
searchcaps.dwCaps2 &= ~DDSCAPS2_CUBEMAP_ALLFACES;
|
||||||
switch(face)
|
switch(face)
|
||||||
|
@ -5815,7 +5815,7 @@ static HRESULT WINAPI findRenderTarget(IDirectDrawSurface7 *surface, DDSURFACEDE
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDeviceParent *iface,
|
static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDeviceParent *iface,
|
||||||
IUnknown *superior, UINT width, UINT height, enum wined3d_format_id format,
|
void *container_parent, UINT width, UINT height, enum wined3d_format_id format,
|
||||||
WINED3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality, BOOL lockable,
|
WINED3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality, BOOL lockable,
|
||||||
IWineD3DSurface **surface)
|
IWineD3DSurface **surface)
|
||||||
{
|
{
|
||||||
|
@ -5823,9 +5823,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDevice
|
||||||
IDirectDrawSurfaceImpl *d3d_surface = This->d3d_target;
|
IDirectDrawSurfaceImpl *d3d_surface = This->d3d_target;
|
||||||
IDirectDrawSurfaceImpl *target = NULL;
|
IDirectDrawSurfaceImpl *target = NULL;
|
||||||
|
|
||||||
TRACE("iface %p, superior %p, width %u, height %u, format %#x, multisample_type %#x,\n"
|
TRACE("iface %p, container_parent %p, width %u, height %u, format %#x, multisample_type %#x,\n"
|
||||||
"\tmultisample_quality %u, lockable %u, surface %p\n",
|
"\tmultisample_quality %u, lockable %u, surface %p\n",
|
||||||
iface, superior, width, height, format, multisample_type, multisample_quality, lockable, surface);
|
iface, container_parent, width, height, format, multisample_type, multisample_quality, lockable, surface);
|
||||||
|
|
||||||
if (d3d_surface->isRenderTarget)
|
if (d3d_surface->isRenderTarget)
|
||||||
{
|
{
|
||||||
|
@ -5903,11 +5903,11 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateDepthStencilSurface(IWineD3
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT STDMETHODCALLTYPE device_parent_CreateVolume(IWineD3DDeviceParent *iface,
|
static HRESULT STDMETHODCALLTYPE device_parent_CreateVolume(IWineD3DDeviceParent *iface,
|
||||||
IUnknown *superior, UINT width, UINT height, UINT depth, enum wined3d_format_id format,
|
void *container_parent, UINT width, UINT height, UINT depth, enum wined3d_format_id format,
|
||||||
WINED3DPOOL pool, DWORD usage, IWineD3DVolume **volume)
|
WINED3DPOOL pool, DWORD usage, IWineD3DVolume **volume)
|
||||||
{
|
{
|
||||||
TRACE("iface %p, superior %p, width %u, height %u, depth %u, format %#x, pool %#x, usage %#x, volume %p\n",
|
TRACE("iface %p, container_parent %p, width %u, height %u, depth %u, format %#x, pool %#x, usage %#x, volume %p\n",
|
||||||
iface, superior, width, height, depth, format, pool, usage, volume);
|
iface, container_parent, width, height, depth, format, pool, usage, volume);
|
||||||
|
|
||||||
ERR("Not implemented!\n");
|
ERR("Not implemented!\n");
|
||||||
|
|
||||||
|
|
|
@ -2130,7 +2130,7 @@ interface IWineD3DDeviceParent : IUnknown
|
||||||
);
|
);
|
||||||
|
|
||||||
HRESULT CreateSurface(
|
HRESULT CreateSurface(
|
||||||
[in] IUnknown *superior,
|
[in] void *container_parent,
|
||||||
[in] UINT width,
|
[in] UINT width,
|
||||||
[in] UINT height,
|
[in] UINT height,
|
||||||
[in] enum wined3d_format_id format_id,
|
[in] enum wined3d_format_id format_id,
|
||||||
|
@ -2142,7 +2142,7 @@ interface IWineD3DDeviceParent : IUnknown
|
||||||
);
|
);
|
||||||
|
|
||||||
HRESULT CreateRenderTarget(
|
HRESULT CreateRenderTarget(
|
||||||
[in] IUnknown *superior,
|
[in] void *container_parent,
|
||||||
[in] UINT width,
|
[in] UINT width,
|
||||||
[in] UINT height,
|
[in] UINT height,
|
||||||
[in] enum wined3d_format_id format_id,
|
[in] enum wined3d_format_id format_id,
|
||||||
|
@ -2163,7 +2163,7 @@ interface IWineD3DDeviceParent : IUnknown
|
||||||
);
|
);
|
||||||
|
|
||||||
HRESULT CreateVolume(
|
HRESULT CreateVolume(
|
||||||
[in] IUnknown *superior,
|
[in] void *container_parent,
|
||||||
[in] UINT width,
|
[in] UINT width,
|
||||||
[in] UINT height,
|
[in] UINT height,
|
||||||
[in] UINT depth,
|
[in] UINT depth,
|
||||||
|
|
Loading…
Reference in New Issue