[PATCH 5/5] d3dx9_36: Cast UINTs to FLOATs in d3dx9_line_Begin.

Stefan Dösinger stefan at codeweavers.com
Fri Jan 3 07:17:20 CST 2014


Here the APIs force us to convert UINTs to FLOATs.
---
 dlls/d3dx9_36/line.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
1.8.3.4 (Apple Git-47)




More information about the wine-patches mailing list