[PATCH] Implement ID3DXMatrixStack::ScaleLocal

Jérôme Gardou jerome.gardou at laposte.net
Sat Nov 15 09:22:34 CST 2008


---
 dlls/d3dx8/math.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/dlls/d3dx8/math.c b/dlls/d3dx8/math.c
index 18d0a04..e4add68 100644
--- a/dlls/d3dx8/math.c
+++ b/dlls/d3dx8/math.c
@@ -824,8 +824,13 @@ static HRESULT WINAPI ID3DXMatrixStackImpl_Scale(ID3DXMatrixStack *iface, FLOAT
 static HRESULT WINAPI ID3DXMatrixStackImpl_ScaleLocal(ID3DXMatrixStack *iface, FLOAT x, FLOAT y, FLOAT z)
 {
     ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface;
-    FIXME("(%p) : stub\n",This);
-    return E_NOTIMPL;
+    D3DMATRIX tmp ;
+
+    TRACE("iface %p\n",This);
+
+    D3DXMatrixScaling(&tmp, x, y, z) ;
+    D3DXMatrixMultiply(&This->stack[This->current], &tmp, &This->stack[This->current]) ;
+    return D3D_OK;
 }
 
 static HRESULT WINAPI ID3DXMatrixStackImpl_Translate(ID3DXMatrixStack *iface, FLOAT x, FLOAT y, FLOAT z)
-- 
1.6.0.3


--------------040606060901010609080807--



More information about the wine-patches mailing list