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

Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Bruno Jesus 2016-09-06 15:32:52 -03:00 committed by Alexandre Julliard
parent 048964b40e
commit f85e7d1716
1 changed files with 2 additions and 1 deletions

View File

@ -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");
}