=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: d3drm: Implement IDirect3DRMLight_[ Get|Set]LinearAttenuation.

Alexandre Julliard julliard at winehq.org
Thu Jun 7 13:39:18 CDT 2012


Module: wine
Branch: master
Commit: b04eceed4512da8a07410f2b54f5b267f8772ef2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b04eceed4512da8a07410f2b54f5b267f8772ef2

Author: André Hentschel <nerv at dawncrow.de>
Date:   Thu Jun  7 13:38:09 2012 +0200

d3drm: Implement IDirect3DRMLight_[Get|Set]LinearAttenuation.

---

 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 750bb5f..e8303ff 100644
--- a/dlls/d3drm/light.c
+++ b/dlls/d3drm/light.c
@@ -36,6 +36,7 @@ typedef struct {
     D3DCOLOR color;
     D3DVALUE range;
     D3DVALUE cattenuation;
+    D3DVALUE lattenuation;
 } IDirect3DRMLightImpl;
 
 static inline IDirect3DRMLightImpl *impl_from_IDirect3DRMLight(IDirect3DRMLight *iface)
@@ -256,9 +257,11 @@ static HRESULT WINAPI IDirect3DRMLightImpl_SetLinearAttenuation(IDirect3DRMLight
 {
     IDirect3DRMLightImpl *This = impl_from_IDirect3DRMLight(iface);
 
-    FIXME("(%p/%p)->(%f): stub\n", iface, This, lattenuation);
+    TRACE("(%p/%p)->(%f)\n", iface, This, lattenuation);
 
-    return E_NOTIMPL;
+    This->lattenuation = lattenuation;
+
+    return D3DRM_OK;
 }
 
 static HRESULT WINAPI IDirect3DRMLightImpl_SetQuadraticAttenuation(IDirect3DRMLight* iface,
@@ -311,9 +314,9 @@ static D3DVALUE WINAPI IDirect3DRMLightImpl_GetLinearAttenuation(IDirect3DRMLigh
 {
     IDirect3DRMLightImpl *This = impl_from_IDirect3DRMLight(iface);
 
-    FIXME("(%p/%p)->(): stub\n", iface, This);
+    TRACE("(%p/%p)->()\n", iface, This);
 
-    return 0;
+    return This->lattenuation;
 }
 
 static D3DVALUE WINAPI IDirect3DRMLightImpl_GetQuadraticAttenuation(IDirect3DRMLight* iface)




More information about the wine-cvs mailing list