wined3d: Add double to float conversion casts in device.c.
authorStefan Dösinger <stefan@codeweavers.com>
Fri, 30 Jul 2010 04:44:49 +0000 (06:44 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 2 Aug 2010 10:55:22 +0000 (12:55 +0200)
dlls/wined3d/device.c

index f18b47764ccd4fd25b1bef7aec0f0037f39e2bfc..2f73c0b77a6354d8afdc1e415a03970eb8a4ab3d 100644 (file)
@@ -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;
 }