Commit 1b2aacc9 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

d3drm: Implement texture SetAppData and GetAppData.

parent 5e031741
...@@ -33,6 +33,7 @@ typedef struct { ...@@ -33,6 +33,7 @@ typedef struct {
IDirect3DRMTexture2 IDirect3DRMTexture2_iface; IDirect3DRMTexture2 IDirect3DRMTexture2_iface;
IDirect3DRMTexture3 IDirect3DRMTexture3_iface; IDirect3DRMTexture3 IDirect3DRMTexture3_iface;
LONG ref; LONG ref;
DWORD app_data;
} IDirect3DRMTextureImpl; } IDirect3DRMTextureImpl;
static inline IDirect3DRMTextureImpl *impl_from_IDirect3DRMTexture2(IDirect3DRMTexture2 *iface) static inline IDirect3DRMTextureImpl *impl_from_IDirect3DRMTexture2(IDirect3DRMTexture2 *iface)
...@@ -130,16 +131,20 @@ static HRESULT WINAPI IDirect3DRMTexture2Impl_DeleteDestroyCallback(IDirect3DRMT ...@@ -130,16 +131,20 @@ static HRESULT WINAPI IDirect3DRMTexture2Impl_DeleteDestroyCallback(IDirect3DRMT
static HRESULT WINAPI IDirect3DRMTexture2Impl_SetAppData(IDirect3DRMTexture2* iface, static HRESULT WINAPI IDirect3DRMTexture2Impl_SetAppData(IDirect3DRMTexture2* iface,
DWORD data) DWORD data)
{ {
FIXME("(%p)->(%u): stub\n", iface, data); IDirect3DRMTextureImpl *This = impl_from_IDirect3DRMTexture2(iface);
return E_NOTIMPL; TRACE("(%p)->(%u)\n", iface, data);
return IDirect3DRMTexture3_SetAppData(&This->IDirect3DRMTexture3_iface, data);
} }
static DWORD WINAPI IDirect3DRMTexture2Impl_GetAppData(IDirect3DRMTexture2* iface) static DWORD WINAPI IDirect3DRMTexture2Impl_GetAppData(IDirect3DRMTexture2* iface)
{ {
FIXME("(%p)->(): stub\n", iface); IDirect3DRMTextureImpl *This = impl_from_IDirect3DRMTexture2(iface);
return 0; TRACE("(%p)->()\n", iface);
return IDirect3DRMTexture3_GetAppData(&This->IDirect3DRMTexture3_iface);
} }
static HRESULT WINAPI IDirect3DRMTexture2Impl_SetName(IDirect3DRMTexture2* iface, LPCSTR name) static HRESULT WINAPI IDirect3DRMTexture2Impl_SetName(IDirect3DRMTexture2* iface, LPCSTR name)
...@@ -494,16 +499,22 @@ static HRESULT WINAPI IDirect3DRMTexture3Impl_DeleteDestroyCallback(IDirect3DRMT ...@@ -494,16 +499,22 @@ static HRESULT WINAPI IDirect3DRMTexture3Impl_DeleteDestroyCallback(IDirect3DRMT
static HRESULT WINAPI IDirect3DRMTexture3Impl_SetAppData(IDirect3DRMTexture3* iface, static HRESULT WINAPI IDirect3DRMTexture3Impl_SetAppData(IDirect3DRMTexture3* iface,
DWORD data) DWORD data)
{ {
FIXME("(%p)->(%u): stub\n", iface, data); IDirect3DRMTextureImpl *This = impl_from_IDirect3DRMTexture3(iface);
return E_NOTIMPL; TRACE("(%p)->(%u)\n", iface, data);
This->app_data = data;
return D3DRM_OK;
} }
static DWORD WINAPI IDirect3DRMTexture3Impl_GetAppData(IDirect3DRMTexture3* iface) static DWORD WINAPI IDirect3DRMTexture3Impl_GetAppData(IDirect3DRMTexture3* iface)
{ {
FIXME("(%p)->(): stub\n", iface); IDirect3DRMTextureImpl *This = impl_from_IDirect3DRMTexture3(iface);
return 0; TRACE("(%p)->()\n", iface);
return This->app_data;
} }
static HRESULT WINAPI IDirect3DRMTexture3Impl_SetName(IDirect3DRMTexture3* iface, LPCSTR name) static HRESULT WINAPI IDirect3DRMTexture3Impl_SetName(IDirect3DRMTexture3* iface, LPCSTR name)
......
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