dinput: Ramp from lStart to lEnd, not lStart to lStart.

This commit is contained in:
Vincent Pelletier 2011-03-20 11:20:12 +01:00 committed by Alexandre Julliard
parent 51f06239ff
commit 296b67f556
1 changed files with 1 additions and 1 deletions

View File

@ -673,7 +673,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_SetParameters(
return DIERR_INVALIDPARAM;
tsp = peff->lpvTypeSpecificParams;
This->effect.u.ramp.start_level = (tsp->lStart / 10) * 32;
This->effect.u.ramp.end_level = (tsp->lStart / 10) * 32;
This->effect.u.ramp.end_level = (tsp->lEnd / 10) * 32;
} else if (type == DIEFT_CONDITION) {
LPCDICONDITION tsp = peff->lpvTypeSpecificParams;
if (peff->cbTypeSpecificParams == sizeof(DICONDITION)) {