Commit 44f5d4bd authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3drm: Introduce impl_from_IDirect3DRMVisualArray().

parent cd16932b
...@@ -92,6 +92,11 @@ static inline IDirect3DRMFrameImpl *impl_from_IDirect3DRMFrame3(IDirect3DRMFrame ...@@ -92,6 +92,11 @@ static inline IDirect3DRMFrameImpl *impl_from_IDirect3DRMFrame3(IDirect3DRMFrame
static inline IDirect3DRMFrameImpl *unsafe_impl_from_IDirect3DRMFrame3(IDirect3DRMFrame3 *iface); static inline IDirect3DRMFrameImpl *unsafe_impl_from_IDirect3DRMFrame3(IDirect3DRMFrame3 *iface);
static inline IDirect3DRMVisualArrayImpl *impl_from_IDirect3DRMVisualArray(IDirect3DRMVisualArray *iface)
{
return CONTAINING_RECORD(iface, IDirect3DRMVisualArrayImpl, IDirect3DRMVisualArray_iface);
}
static inline struct d3drm_light_array *impl_from_IDirect3DRMLightArray(IDirect3DRMLightArray *iface) static inline struct d3drm_light_array *impl_from_IDirect3DRMLightArray(IDirect3DRMLightArray *iface)
{ {
return CONTAINING_RECORD(iface, struct d3drm_light_array, IDirect3DRMLightArray_iface); return CONTAINING_RECORD(iface, struct d3drm_light_array, IDirect3DRMLightArray_iface);
...@@ -235,7 +240,7 @@ static HRESULT WINAPI IDirect3DRMVisualArrayImpl_QueryInterface(IDirect3DRMVisua ...@@ -235,7 +240,7 @@ static HRESULT WINAPI IDirect3DRMVisualArrayImpl_QueryInterface(IDirect3DRMVisua
static ULONG WINAPI IDirect3DRMVisualArrayImpl_AddRef(IDirect3DRMVisualArray* iface) static ULONG WINAPI IDirect3DRMVisualArrayImpl_AddRef(IDirect3DRMVisualArray* iface)
{ {
IDirect3DRMVisualArrayImpl *This = (IDirect3DRMVisualArrayImpl*)iface; IDirect3DRMVisualArrayImpl *This = impl_from_IDirect3DRMVisualArray(iface);
ULONG ref = InterlockedIncrement(&This->ref); ULONG ref = InterlockedIncrement(&This->ref);
TRACE("(%p)->(): new ref = %u\n", iface, ref); TRACE("(%p)->(): new ref = %u\n", iface, ref);
...@@ -245,7 +250,7 @@ static ULONG WINAPI IDirect3DRMVisualArrayImpl_AddRef(IDirect3DRMVisualArray* if ...@@ -245,7 +250,7 @@ static ULONG WINAPI IDirect3DRMVisualArrayImpl_AddRef(IDirect3DRMVisualArray* if
static ULONG WINAPI IDirect3DRMVisualArrayImpl_Release(IDirect3DRMVisualArray* iface) static ULONG WINAPI IDirect3DRMVisualArrayImpl_Release(IDirect3DRMVisualArray* iface)
{ {
IDirect3DRMVisualArrayImpl *This = (IDirect3DRMVisualArrayImpl*)iface; IDirect3DRMVisualArrayImpl *This = impl_from_IDirect3DRMVisualArray(iface);
ULONG ref = InterlockedDecrement(&This->ref); ULONG ref = InterlockedDecrement(&This->ref);
ULONG i; ULONG i;
...@@ -265,7 +270,7 @@ static ULONG WINAPI IDirect3DRMVisualArrayImpl_Release(IDirect3DRMVisualArray* i ...@@ -265,7 +270,7 @@ static ULONG WINAPI IDirect3DRMVisualArrayImpl_Release(IDirect3DRMVisualArray* i
/*** IDirect3DRMArray methods ***/ /*** IDirect3DRMArray methods ***/
static DWORD WINAPI IDirect3DRMVisualArrayImpl_GetSize(IDirect3DRMVisualArray* iface) static DWORD WINAPI IDirect3DRMVisualArrayImpl_GetSize(IDirect3DRMVisualArray* iface)
{ {
IDirect3DRMVisualArrayImpl *This = (IDirect3DRMVisualArrayImpl*)iface; IDirect3DRMVisualArrayImpl *This = impl_from_IDirect3DRMVisualArray(iface);
TRACE("(%p)->() = %d\n", iface, This->size); TRACE("(%p)->() = %d\n", iface, This->size);
...@@ -276,7 +281,7 @@ static DWORD WINAPI IDirect3DRMVisualArrayImpl_GetSize(IDirect3DRMVisualArray* i ...@@ -276,7 +281,7 @@ static DWORD WINAPI IDirect3DRMVisualArrayImpl_GetSize(IDirect3DRMVisualArray* i
static HRESULT WINAPI IDirect3DRMVisualArrayImpl_GetElement(IDirect3DRMVisualArray *iface, static HRESULT WINAPI IDirect3DRMVisualArrayImpl_GetElement(IDirect3DRMVisualArray *iface,
DWORD index, IDirect3DRMVisual **visual) DWORD index, IDirect3DRMVisual **visual)
{ {
IDirect3DRMVisualArrayImpl *This = (IDirect3DRMVisualArrayImpl*)iface; IDirect3DRMVisualArrayImpl *This = impl_from_IDirect3DRMVisualArray(iface);
TRACE("(%p)->(%u, %p)\n", iface, index, visual); TRACE("(%p)->(%u, %p)\n", iface, index, visual);
......
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