Commit 127733eb authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dinput: Remove explicit cast to long as it happens implicitly.

LPDIEFFECT->rglDirection is a LPLONG.
parent 7bec8e1d
...@@ -342,8 +342,8 @@ static HRESULT WINAPI LinuxInputEffectImpl_GetParameters( ...@@ -342,8 +342,8 @@ static HRESULT WINAPI LinuxInputEffectImpl_GetParameters(
return diErr; return diErr;
else { else {
if (peff->dwFlags & DIEFF_CARTESIAN) { if (peff->dwFlags & DIEFF_CARTESIAN) {
peff->rglDirection[0] = (long)(sin(M_PI * 3 * This->effect.direction / 0x7FFF) * 1000); peff->rglDirection[0] = sin(M_PI * 3 * This->effect.direction / 0x7FFF) * 1000;
peff->rglDirection[1] = (long)(cos(M_PI * 3 * This->effect.direction / 0x7FFF) * 1000); peff->rglDirection[1] = cos(M_PI * 3 * This->effect.direction / 0x7FFF) * 1000;
} else { } else {
/* Polar and spherical coordinates are the same for two or less /* Polar and spherical coordinates are the same for two or less
* axes. * axes.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment