Added unchecked block around axis scaling

This commit is contained in:
Travis Nickles 2018-07-30 17:01:15 -05:00
parent 21350227c6
commit a4002ade3a

View File

@ -656,6 +656,8 @@ namespace DS4Windows
} }
private short AxisScale(Int32 Value, Boolean Flip) private short AxisScale(Int32 Value, Boolean Flip)
{
unchecked
{ {
Value -= 0x80; Value -= 0x80;
@ -665,6 +667,7 @@ namespace DS4Windows
return (short)(temp * outputResolution + (-32768)); return (short)(temp * outputResolution + (-32768));
} }
}
private void CheckProfileOptions(int ind, DS4Device device, bool startUp=false) private void CheckProfileOptions(int ind, DS4Device device, bool startUp=false)
{ {