d3dx9_36: Cast UINTs to FLOATs in d3dx9_line_Begin.

This commit is contained in:
Stefan Dösinger 2014-01-03 14:17:20 +01:00 committed by Alexandre Julliard
parent b87e167fa3
commit b054fe94ee
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ static HRESULT WINAPI d3dx9_line_Begin(ID3DXLine *iface)
goto failed; goto failed;
D3DXMatrixIdentity(&identity); 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))) if (FAILED(IDirect3DDevice9_SetTransform(line->device, D3DTS_WORLD, &identity)))
goto failed; goto failed;