diff --git a/Library/MeterRotator.cpp b/Library/MeterRotator.cpp index c1097934..83829387 100644 --- a/Library/MeterRotator.cpp +++ b/Library/MeterRotator.cpp @@ -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);