Christian Costa : d3drm: Implement IDirect3DRMMeshImpl_SetGroupColorRGB.
Alexandre Julliard
julliard at winehq.org
Mon Jun 11 15:08:06 CDT 2012
Module: wine
Branch: master
Commit: f1cd213931c49b77e0f44085352b4e25ef0c2b42
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f1cd213931c49b77e0f44085352b4e25ef0c2b42
Author: Christian Costa <titan.costa at gmail.com>
Date: Fri Jun 8 15:38:59 2012 +0200
d3drm: Implement IDirect3DRMMeshImpl_SetGroupColorRGB.
---
dlls/d3drm/meshbuilder.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/dlls/d3drm/meshbuilder.c b/dlls/d3drm/meshbuilder.c
index c545e69..21cfc2f 100644
--- a/dlls/d3drm/meshbuilder.c
+++ b/dlls/d3drm/meshbuilder.c
@@ -2742,9 +2742,16 @@ static HRESULT WINAPI IDirect3DRMMeshImpl_SetGroupColorRGB(IDirect3DRMMesh* ifac
{
IDirect3DRMMeshImpl *This = impl_from_IDirect3DRMMesh(iface);
- FIXME("(%p)->(%u,%f,%f,%f): stub\n", This, id, red, green, blue);
+ TRACE("(%p)->(%u,%f,%f,%f)\n", This, id, red, green, blue);
- return E_NOTIMPL;
+ if (id >= This->nb_groups)
+ return D3DRMERR_BADVALUE;
+
+ This->groups[id].color = D3DCOLOR_ARGB(0xff, (BYTE)(red * 255.0f),
+ (BYTE)(green * 255.0f),
+ (BYTE)(blue * 255.0f));
+
+ return D3DRM_OK;
}
static HRESULT WINAPI IDirect3DRMMeshImpl_SetGroupMapping(IDirect3DRMMesh* iface,
More information about the wine-cvs
mailing list