Module: wine Branch: master Commit: 296b67f556dd811ffa9e7a6b68fc3264eeff8724 URL: http://source.winehq.org/git/wine.git/?a=commit;h=296b67f556dd811ffa9e7a6b68...
Author: Vincent Pelletier plr.vincent@gmail.com Date: Sun Mar 20 11:20:12 2011 +0100
dinput: Ramp from lStart to lEnd, not lStart to lStart.
---
dlls/dinput/effect_linuxinput.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/dinput/effect_linuxinput.c b/dlls/dinput/effect_linuxinput.c index d0e77d6..fbc5994 100644 --- a/dlls/dinput/effect_linuxinput.c +++ b/dlls/dinput/effect_linuxinput.c @@ -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)) {