Module: wine Branch: master Commit: b054fe94ee0bc34652b147e1b42228cfb5f056a0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b054fe94ee0bc34652b147e1b4...
Author: Stefan Dösinger stefan@codeweavers.com Date: Fri Jan 3 14:17:20 2014 +0100
d3dx9_36: Cast UINTs to FLOATs in d3dx9_line_Begin.
---
dlls/d3dx9_36/line.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/d3dx9_36/line.c b/dlls/d3dx9_36/line.c index 0b3e88f..5de44f4 100644 --- a/dlls/d3dx9_36/line.c +++ b/dlls/d3dx9_36/line.c @@ -113,7 +113,7 @@ static HRESULT WINAPI d3dx9_line_Begin(ID3DXLine *iface) goto failed;
D3DXMatrixIdentity(&identity); - D3DXMatrixOrthoOffCenterLH(&projection, 0.0, vp.Width, vp.Height, 0.0, 0.0, 1.0); + D3DXMatrixOrthoOffCenterLH(&projection, 0.0, (FLOAT)vp.Width, (FLOAT)vp.Height, 0.0, 0.0, 1.0);
if (FAILED(IDirect3DDevice9_SetTransform(line->device, D3DTS_WORLD, &identity))) goto failed;