mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Rotator: Use more exact value of 2π for RotationAngle
This commit is contained in:
parent
27164b8e75
commit
4b6a1d31ea
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user