Christian Costa : d3drm: Implement IDirect3DRMMeshImpl_SetGroupColor.

Alexandre Julliard julliard at winehq.org
Tue Jun 5 14:46:54 CDT 2012


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

Author: Christian Costa <titan.costa at gmail.com>
Date:   Mon Jun  4 19:30:59 2012 +0200

d3drm: Implement IDirect3DRMMeshImpl_SetGroupColor.

---

 dlls/d3drm/meshbuilder.c |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/dlls/d3drm/meshbuilder.c b/dlls/d3drm/meshbuilder.c
index fdab66f..dabea1f 100644
--- a/dlls/d3drm/meshbuilder.c
+++ b/dlls/d3drm/meshbuilder.c
@@ -2624,13 +2624,18 @@ static HRESULT WINAPI IDirect3DRMMeshImpl_SetVertices(IDirect3DRMMesh* iface,
 }
 
 static HRESULT WINAPI IDirect3DRMMeshImpl_SetGroupColor(IDirect3DRMMesh* iface,
-                                                        D3DRMGROUPINDEX id, D3DCOLOR value)
+                                                        D3DRMGROUPINDEX id, D3DCOLOR color)
 {
     IDirect3DRMMeshImpl *This = impl_from_IDirect3DRMMesh(iface);
 
-    FIXME("(%p)->(%u,%x): stub\n", This, id, value);
+    TRACE("(%p)->(%u,%x)\n", This, id, color);
 
-    return E_NOTIMPL;
+    if (id >= This->nb_groups)
+        return D3DRMERR_BADVALUE;
+
+    This->groups[id].color = color;
+
+    return D3DRM_OK;
 }
 
 static HRESULT WINAPI IDirect3DRMMeshImpl_SetGroupColorRGB(IDirect3DRMMesh* iface,




More information about the wine-cvs mailing list