Stefan Dösinger : wined3d: Add double to float conversion casts in device.c.
Alexandre Julliard
julliard at winehq.org
Mon Aug 2 11:03:53 CDT 2010
Module: wine
Branch: master
Commit: fc5eeebe1a788ea192f4c57d3f2c6a962e94e0eb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fc5eeebe1a788ea192f4c57d3f2c6a962e94e0eb
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Fri Jul 30 06:44:49 2010 +0200
wined3d: Add double to float conversion casts in device.c.
---
dlls/wined3d/device.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index f18b477..2f73c0b 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -2611,7 +2611,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetLight(IWineD3DDevice *iface, DWORD I
{
object->exponent = 128.0f;
}
- object->cutoff = pLight->Phi*90/M_PI;
+ object->cutoff = (float) (pLight->Phi*90/M_PI);
/* FIXME: Range */
break;
@@ -2814,10 +2814,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetClipPlane(IWineD3DDevice *iface, DWO
return WINED3DERR_INVALIDCALL;
}
- pPlane[0] = This->stateBlock->clipplane[Index][0];
- pPlane[1] = This->stateBlock->clipplane[Index][1];
- pPlane[2] = This->stateBlock->clipplane[Index][2];
- pPlane[3] = This->stateBlock->clipplane[Index][3];
+ pPlane[0] = (float) This->stateBlock->clipplane[Index][0];
+ pPlane[1] = (float) This->stateBlock->clipplane[Index][1];
+ pPlane[2] = (float) This->stateBlock->clipplane[Index][2];
+ pPlane[3] = (float) This->stateBlock->clipplane[Index][3];
return WINED3D_OK;
}
More information about the wine-cvs
mailing list