mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Roundline meter: Fixed a rounding error when using a large value for StartAngle
This commit is contained in:
parent
e3ec9371f9
commit
c873405422
@ -144,7 +144,7 @@ bool CMeterRoundLine::Draw(Gfx::Canvas& canvas)
|
|||||||
|
|
||||||
if (m_Solid)
|
if (m_Solid)
|
||||||
{
|
{
|
||||||
REAL startAngle = (REAL)(CONVERT_TO_DEGREES(m_StartAngle));
|
REAL startAngle = (REAL)(fmod(CONVERT_TO_DEGREES(m_StartAngle), 360.0));
|
||||||
REAL sweepAngle = (REAL)(CONVERT_TO_DEGREES(m_RotationAngle * m_Value));
|
REAL sweepAngle = (REAL)(CONVERT_TO_DEGREES(m_RotationAngle * m_Value));
|
||||||
|
|
||||||
// Calculate the start point of the line
|
// Calculate the start point of the line
|
||||||
|
Loading…
Reference in New Issue
Block a user