PATCH: Implement IDirect3DViewport2_DeleteLight.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changelog :
dlls/ddraw/d3dviewport.c

Implement IDirect3DViewport2_DeleteLight.

Christian Costa   titan.costa@wanadoo.fr
Index: d3dviewport.c
===================================================================
RCS file: /home/wine/wine/dlls/ddraw/d3dviewport.c,v
retrieving revision 1.8
diff -u -r1.8 d3dviewport.c
--- d3dviewport.c	26 Sep 2002 03:20:35 -0000	1.8
+++ d3dviewport.c	28 Sep 2002 16:30:45 -0000
@@ -311,9 +311,19 @@
 						     LPDIRECT3DLIGHT lpLight)
 {
   ICOM_THIS(IDirect3DViewport2Impl,iface);
-  FIXME("(%p)->(%p): stub\n", This, lpLight);
+  IDirect3DLightImpl** currentlplpLight;
+  TRACE("(%p)->(%p): stub\n", This, lpLight);
 
-  return DD_OK;
+  currentlplpLight = &(This->lights);
+  while(*currentlplpLight) {
+    if (*currentlplpLight == (IDirect3DLightImpl*)lpLight) {
+      *currentlplpLight = (*currentlplpLight)->next;
+      return DD_OK;
+    }
+    currentlplpLight = &((*currentlplpLight)->next);
+  }
+
+  return DDERR_INVALIDOBJECT;
 }
 
 HRESULT WINAPI IDirect3DViewport2Impl_NextLight(LPDIRECT3DVIEWPORT2 iface,

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux