Rotator: Use more exact value of 2π for RotationAngle

This commit is contained in:
Birunthan Mohanathas 2014-01-05 11:43:50 +02:00
parent 27164b8e75
commit 4b6a1d31ea

View File

@ -39,7 +39,7 @@ MeterRotator::MeterRotator(MeterWindow* meterWindow, const WCHAR* name) : Meter(
m_OffsetX(),
m_OffsetY(),
m_StartAngle(),
m_RotationAngle(6.2832),
m_RotationAngle(PI * 2.0),
m_ValueRemainder(),
m_Value()
{
@ -97,7 +97,7 @@ void MeterRotator::ReadOptions(ConfigParser& parser, const WCHAR* section)
m_OffsetX = parser.ReadFloat(section, L"OffsetX", 0.0);
m_OffsetY = parser.ReadFloat(section, L"OffsetY", 0.0);
m_StartAngle = parser.ReadFloat(section, L"StartAngle", 0.0);
m_RotationAngle = parser.ReadFloat(section, L"RotationAngle", 6.2832);
m_RotationAngle = parser.ReadFloat(section, L"RotationAngle", PI * 2.0);
m_ValueRemainder = parser.ReadInt(section, L"ValueReminder", 0); // Typo
m_ValueRemainder = parser.ReadInt(section, L"ValueRemainder", m_ValueRemainder);