[1/5] d3drm: Implement IDirect3DRMLight_[Get|Set]ConstantAttenuation

André Hentschel nerv at dawncrow.de
Thu Jul 26 15:08:36 CDT 2012


that's the case of "mails to the mailinglist are received weeks later", you can obviously ignore it

Am 05.06.2012 23:35, schrieb André Hentschel:
> ---
>  dlls/d3drm/light.c |   11 +++++++----
>  1 files changed, 7 insertions(+), 4 deletions(-)
> 
> diff --git a/dlls/d3drm/light.c b/dlls/d3drm/light.c
> index 12c8623..750bb5f 100644
> --- a/dlls/d3drm/light.c
> +++ b/dlls/d3drm/light.c
> @@ -35,6 +35,7 @@ typedef struct {
>      D3DRMLIGHTTYPE type;
>      D3DCOLOR color;
>      D3DVALUE range;
> +    D3DVALUE cattenuation;
>  } IDirect3DRMLightImpl;
>  
>  static inline IDirect3DRMLightImpl *impl_from_IDirect3DRMLight(IDirect3DRMLight *iface)
> @@ -243,9 +244,11 @@ static HRESULT WINAPI IDirect3DRMLightImpl_SetConstantAttenuation(IDirect3DRMLig
>  {
>      IDirect3DRMLightImpl *This = impl_from_IDirect3DRMLight(iface);
>  
> -    FIXME("(%p/%p)->(%f): stub\n", iface, This, cattenuation);
> +    TRACE("(%p/%p)->(%f)\n", iface, This, cattenuation);
>  
> -    return E_NOTIMPL;
> +    This->cattenuation = cattenuation;
> +
> +    return D3DRM_OK;
>  }
>  
>  static HRESULT WINAPI IDirect3DRMLightImpl_SetLinearAttenuation(IDirect3DRMLight* iface,
> @@ -299,9 +302,9 @@ static D3DVALUE WINAPI IDirect3DRMLightImpl_GetConstantAttenuation(IDirect3DRMLi
>  {
>      IDirect3DRMLightImpl *This = impl_from_IDirect3DRMLight(iface);
>  
> -    FIXME("(%p/%p)->(): stub\n", iface, This);
> +    TRACE("(%p/%p)->()\n", iface, This);
>  
> -    return 0;
> +    return This->cattenuation;
>  }
>  
>  static D3DVALUE WINAPI IDirect3DRMLightImpl_GetLinearAttenuation(IDirect3DRMLight* iface)
> 
> 
> 
> 


-- 

Best Regards, André Hentschel



More information about the wine-devel mailing list