Module: wine Branch: master Commit: 75cb8a7ad38844eb58a365f3f249b7efbe9a5c45 URL: http://source.winehq.org/git/wine.git/?a=commit;h=75cb8a7ad38844eb58a365f3f2...
Author: Jérôme Gardou jerome.gardou@gmail.com Date: Wed Nov 12 09:03:32 2008 +0100
d3dx8: Implement D3DXMatrixStack_Scale.
---
dlls/d3dx8/math.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/dlls/d3dx8/math.c b/dlls/d3dx8/math.c index c56c1c0..0fc178e 100644 --- a/dlls/d3dx8/math.c +++ b/dlls/d3dx8/math.c @@ -818,9 +818,15 @@ static HRESULT WINAPI ID3DXMatrixStackImpl_RotateYawPitchRollLocal(ID3DXMatrixSt
static HRESULT WINAPI ID3DXMatrixStackImpl_Scale(ID3DXMatrixStack *iface, FLOAT x, FLOAT y, FLOAT z) { + D3DXMATRIX temp; ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface; - FIXME("(%p) : stub\n",This); - return E_NOTIMPL; + + TRACE("iface %p\n", iface); + + D3DXMatrixScaling(&temp, x, y, z); + D3DXMatrixMultiply(&This->stack[This->current], &This->stack[This->current], &temp); + + return D3D_OK; }
static HRESULT WINAPI ID3DXMatrixStackImpl_ScaleLocal(ID3DXMatrixStack *iface, FLOAT x, FLOAT y, FLOAT z)