PATCH: Implement IDirect3DViewport2_DeleteLight.
Christian Costa
titan.costa at wanadoo.fr
Sat Sep 28 11:45:03 CDT 2002
Changelog :
dlls/ddraw/d3dviewport.c
Implement IDirect3DViewport2_DeleteLight.
Christian Costa titan.costa at wanadoo.fr
-------------- next part --------------
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,
More information about the wine-patches
mailing list