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

LPDIEFFECT->rglDirection is a LPLONG.
This commit is contained in:
Michael Stefaniuc 2010-05-18 09:47:10 +02:00 committed by Alexandre Julliard
parent 7bec8e1dcb
commit 127733ebda

View File

@ -342,8 +342,8 @@ static HRESULT WINAPI LinuxInputEffectImpl_GetParameters(
return diErr;
else {
if (peff->dwFlags & DIEFF_CARTESIAN) {
peff->rglDirection[0] = (long)(sin(M_PI * 3 * This->effect.direction / 0x7FFF) * 1000);
peff->rglDirection[1] = (long)(cos(M_PI * 3 * This->effect.direction / 0x7FFF) * 1000);
peff->rglDirection[0] = sin(M_PI * 3 * This->effect.direction / 0x7FFF) * 1000;
peff->rglDirection[1] = cos(M_PI * 3 * This->effect.direction / 0x7FFF) * 1000;
} else {
/* Polar and spherical coordinates are the same for two or less
* axes.