Bruno Jesus : dinput: Only complain for unsupported effect envelope if it really is useful.

Alexandre Julliard julliard at winehq.org
Wed Sep 7 10:48:41 CDT 2016


Module: wine
Branch: master
Commit: f85e7d17167760080f31aaec39632c18ed5b7f8a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f85e7d17167760080f31aaec39632c18ed5b7f8a

Author: Bruno Jesus <00cpxxx at gmail.com>
Date:   Tue Sep  6 15:32:52 2016 -0300

dinput: Only complain for unsupported effect envelope if it really is useful.

Signed-off-by: Bruno Jesus <00cpxxx at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dinput/effect_linuxinput.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/dinput/effect_linuxinput.c b/dlls/dinput/effect_linuxinput.c
index 1015105..fe3334a 100644
--- a/dlls/dinput/effect_linuxinput.c
+++ b/dlls/dinput/effect_linuxinput.c
@@ -585,7 +585,8 @@ static HRESULT WINAPI LinuxInputEffectImpl_SetParameters(
             env->fade_length = 0;
             env->fade_level = 0;
         }
-        else
+        else if(peff->lpEnvelope->dwAttackTime || peff->lpEnvelope->dwAttackLevel ||
+                peff->lpEnvelope->dwFadeTime || peff->lpEnvelope->dwFadeLevel)
             WARN("Ignoring dinput envelope not supported in the linux effect\n");
     }
 




More information about the wine-cvs mailing list