Minor tweak

This commit is contained in:
Travis Nickles 2018-01-15 01:12:12 -06:00
parent b9bc51e873
commit be10ab29b2

View File

@ -32,7 +32,7 @@ namespace DS4Windows.DS4Library
if (endpointVolume != null)
endpointVolume.GetMasterVolumeLevelScalar(out pfLevel);
vol = Convert.ToUInt32(pfLevel > 0 ? (75 - 20) * (--pfLevel * pfLevel * pfLevel + 1) + 20 : 0);
vol = Convert.ToUInt32((75 - 20) * (--pfLevel * pfLevel * pfLevel + 1) + 20);
}
public void OnNotify(IntPtr pNotify)