Commit 27209e60 authored by Rico Schüller's avatar Rico Schüller Committed by Alexandre Julliard

d3dx9: Fix some style issues.

parent 2f3e9673
......@@ -2535,20 +2535,21 @@ HRESULT WINAPI D3DXCreateEffectCompiler(LPCSTR srcdata,
static const struct ID3DXEffectPoolVtbl ID3DXEffectPool_Vtbl;
typedef struct ID3DXEffectPoolImpl {
struct ID3DXEffectPoolImpl
{
ID3DXEffectPool ID3DXEffectPool_iface;
LONG ref;
} ID3DXEffectPoolImpl;
};
static inline ID3DXEffectPoolImpl *impl_from_ID3DXEffectPool(ID3DXEffectPool *iface)
static inline struct ID3DXEffectPoolImpl *impl_from_ID3DXEffectPool(ID3DXEffectPool *iface)
{
return CONTAINING_RECORD(iface, ID3DXEffectPoolImpl, ID3DXEffectPool_iface);
return CONTAINING_RECORD(iface, struct ID3DXEffectPoolImpl, ID3DXEffectPool_iface);
}
/*** IUnknown methods ***/
static HRESULT WINAPI ID3DXEffectPoolImpl_QueryInterface(ID3DXEffectPool* iface, REFIID riid, void** object)
static HRESULT WINAPI ID3DXEffectPoolImpl_QueryInterface(ID3DXEffectPool *iface, REFIID riid, void **object)
{
ID3DXEffectPoolImpl *This = impl_from_ID3DXEffectPool(iface);
struct ID3DXEffectPoolImpl *This = impl_from_ID3DXEffectPool(iface);
TRACE("(%p)->(%s, %p)\n", This, debugstr_guid(riid), object);
......@@ -2565,18 +2566,18 @@ static HRESULT WINAPI ID3DXEffectPoolImpl_QueryInterface(ID3DXEffectPool* iface,
return E_NOINTERFACE;
}
static ULONG WINAPI ID3DXEffectPoolImpl_AddRef(ID3DXEffectPool* iface)
static ULONG WINAPI ID3DXEffectPoolImpl_AddRef(ID3DXEffectPool *iface)
{
ID3DXEffectPoolImpl *This = impl_from_ID3DXEffectPool(iface);
struct ID3DXEffectPoolImpl *This = impl_from_ID3DXEffectPool(iface);
TRACE("(%p)->(): AddRef from %u\n", This, This->ref);
return InterlockedIncrement(&This->ref);
}
static ULONG WINAPI ID3DXEffectPoolImpl_Release(ID3DXEffectPool* iface)
static ULONG WINAPI ID3DXEffectPoolImpl_Release(ID3DXEffectPool *iface)
{
ID3DXEffectPoolImpl *This = impl_from_ID3DXEffectPool(iface);
struct ID3DXEffectPoolImpl *This = impl_from_ID3DXEffectPool(iface);
ULONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p)->(): Release from %u\n", This, ref + 1);
......@@ -2595,9 +2596,9 @@ static const struct ID3DXEffectPoolVtbl ID3DXEffectPool_Vtbl =
ID3DXEffectPoolImpl_Release
};
HRESULT WINAPI D3DXCreateEffectPool(LPD3DXEFFECTPOOL* pool)
HRESULT WINAPI D3DXCreateEffectPool(LPD3DXEFFECTPOOL *pool)
{
ID3DXEffectPoolImpl* object;
struct ID3DXEffectPoolImpl *object;
TRACE("(%p)\n", pool);
......
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