Roundline meter: Fixed a rounding error when using a large value for StartAngle

This commit is contained in:
Brian Ferguson 2013-05-16 13:45:32 -06:00
parent e3ec9371f9
commit c873405422

View File

@ -144,7 +144,7 @@ bool CMeterRoundLine::Draw(Gfx::Canvas& canvas)
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));
// Calculate the start point of the line