Commit a91ef521 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3d9: Get rid of IDirect3DVolume9Impl.

parent 2a63fe66
...@@ -164,20 +164,16 @@ HRESULT device_init(struct d3d9_device *device, struct d3d9 *parent, struct wine ...@@ -164,20 +164,16 @@ HRESULT device_init(struct d3d9_device *device, struct d3d9 *parent, struct wine
UINT adapter, D3DDEVTYPE device_type, HWND focus_window, DWORD flags, UINT adapter, D3DDEVTYPE device_type, HWND focus_window, DWORD flags,
D3DPRESENT_PARAMETERS *parameters, D3DDISPLAYMODEEX *mode) DECLSPEC_HIDDEN; D3DPRESENT_PARAMETERS *parameters, D3DDISPLAYMODEEX *mode) DECLSPEC_HIDDEN;
/***************************************************************************** struct d3d9_volume
* IDirect3DVolume9 implementation structure
*/
typedef struct IDirect3DVolume9Impl
{ {
/* IUnknown fields */
IDirect3DVolume9 IDirect3DVolume9_iface; IDirect3DVolume9 IDirect3DVolume9_iface;
LONG ref; LONG refcount;
struct wined3d_volume *wined3d_volume; struct wined3d_volume *wined3d_volume;
IUnknown *container; IUnknown *container;
IUnknown *forwardReference; IUnknown *forwardReference;
} IDirect3DVolume9Impl; };
HRESULT volume_init(IDirect3DVolume9Impl *volume, struct d3d9_device *device, UINT width, UINT height, HRESULT volume_init(struct d3d9_volume *volume, struct d3d9_device *device, UINT width, UINT height,
UINT depth, DWORD usage, enum wined3d_format_id format, enum wined3d_pool pool) DECLSPEC_HIDDEN; UINT depth, DWORD usage, enum wined3d_format_id format, enum wined3d_pool pool) DECLSPEC_HIDDEN;
/* ------------------- */ /* ------------------- */
......
...@@ -3196,7 +3196,7 @@ static HRESULT CDECL device_parent_create_volume(struct wined3d_device_parent *d ...@@ -3196,7 +3196,7 @@ static HRESULT CDECL device_parent_create_volume(struct wined3d_device_parent *d
enum wined3d_pool pool, DWORD usage, struct wined3d_volume **volume) enum wined3d_pool pool, DWORD usage, struct wined3d_volume **volume)
{ {
struct d3d9_device *device = device_from_device_parent(device_parent); struct d3d9_device *device = device_from_device_parent(device_parent);
IDirect3DVolume9Impl *object; struct d3d9_volume *object;
HRESULT hr; HRESULT hr;
TRACE("device_parent %p, container_parent %p, width %u, height %u, depth %u, " TRACE("device_parent %p, container_parent %p, width %u, height %u, depth %u, "
......
...@@ -1176,7 +1176,7 @@ static HRESULT WINAPI d3d9_texture_3d_GetVolumeLevel(IDirect3DVolumeTexture9 *if ...@@ -1176,7 +1176,7 @@ static HRESULT WINAPI d3d9_texture_3d_GetVolumeLevel(IDirect3DVolumeTexture9 *if
{ {
struct d3d9_texture *texture = impl_from_IDirect3DVolumeTexture9(iface); struct d3d9_texture *texture = impl_from_IDirect3DVolumeTexture9(iface);
struct wined3d_resource *sub_resource; struct wined3d_resource *sub_resource;
IDirect3DVolume9Impl *volume_impl; struct d3d9_volume *volume_impl;
TRACE("iface %p, level %u, volume %p.\n", iface, level, volume); TRACE("iface %p, level %u, volume %p.\n", iface, level, volume);
...@@ -1200,7 +1200,7 @@ static HRESULT WINAPI d3d9_texture_3d_LockBox(IDirect3DVolumeTexture9 *iface, ...@@ -1200,7 +1200,7 @@ static HRESULT WINAPI d3d9_texture_3d_LockBox(IDirect3DVolumeTexture9 *iface,
{ {
struct d3d9_texture *texture = impl_from_IDirect3DVolumeTexture9(iface); struct d3d9_texture *texture = impl_from_IDirect3DVolumeTexture9(iface);
struct wined3d_resource *sub_resource; struct wined3d_resource *sub_resource;
IDirect3DVolume9Impl *volume_impl; struct d3d9_volume *volume_impl;
HRESULT hr; HRESULT hr;
TRACE("iface %p, level %u, locked_box %p, box %p, flags %#x.\n", TRACE("iface %p, level %u, locked_box %p, box %p, flags %#x.\n",
...@@ -1223,7 +1223,7 @@ static HRESULT WINAPI d3d9_texture_3d_UnlockBox(IDirect3DVolumeTexture9 *iface, ...@@ -1223,7 +1223,7 @@ static HRESULT WINAPI d3d9_texture_3d_UnlockBox(IDirect3DVolumeTexture9 *iface,
{ {
struct d3d9_texture *texture = impl_from_IDirect3DVolumeTexture9(iface); struct d3d9_texture *texture = impl_from_IDirect3DVolumeTexture9(iface);
struct wined3d_resource *sub_resource; struct wined3d_resource *sub_resource;
IDirect3DVolume9Impl *volume_impl; struct d3d9_volume *volume_impl;
HRESULT hr; HRESULT hr;
TRACE("iface %p, level %u.\n", iface, level); TRACE("iface %p, level %u.\n", iface, level);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment