[5/5] d3drm: Implement IDirect3DRMLight_[Get|Set]PenUmbra

André Hentschel nerv at dawncrow.de
Thu Jul 26 08:33:28 CDT 2012


---
 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 f280dd0..67baaa7 100644
--- a/dlls/d3drm/light.c
+++ b/dlls/d3drm/light.c
@@ -39,6 +39,7 @@ typedef struct {
     D3DVALUE lattenuation;
     D3DVALUE qattenuation;
     D3DVALUE umbra;
+    D3DVALUE penumbra;
 } IDirect3DRMLightImpl;
 
 static inline IDirect3DRMLightImpl *impl_from_IDirect3DRMLight(IDirect3DRMLight *iface)
@@ -239,9 +240,11 @@ static HRESULT WINAPI IDirect3DRMLightImpl_SetPenumbra(IDirect3DRMLight* iface,
 {
     IDirect3DRMLightImpl *This = impl_from_IDirect3DRMLight(iface);
 
-    FIXME("(%p/%p)->(%f): stub\n", iface, This, penumbra);
+    TRACE("(%p/%p)->(%f)\n", iface, This, penumbra);
 
-    return E_NOTIMPL;
+    This->penumbra = penumbra;
+
+    return D3DRM_OK;
 }
 
 static HRESULT WINAPI IDirect3DRMLightImpl_SetConstantAttenuation(IDirect3DRMLight* iface,
@@ -302,9 +305,9 @@ static D3DVALUE WINAPI IDirect3DRMLightImpl_GetPenumbra(IDirect3DRMLight* iface)
 {
     IDirect3DRMLightImpl *This = impl_from_IDirect3DRMLight(iface);
 
-    FIXME("(%p/%p)->(): stub\n", iface, This);
+    TRACE("(%p/%p)->()\n", iface, This);
 
-    return 0;
+    return This->penumbra;
 }
 
 static D3DVALUE WINAPI IDirect3DRMLightImpl_GetConstantAttenuation(IDirect3DRMLight* iface)
-- 

Best Regards, André Hentschel


More information about the wine-patches mailing list