Kaydet (Commit) 1a37a61b authored tarafından Markus Mohrhard's avatar Markus Mohrhard

Revert "use fmod and make code simpler"

This reverts commit 66ef9bc4aa0d0bd364d20373360ad2361394a871.
üst f1c649a9
...@@ -351,8 +351,9 @@ void DummyPieSegment2D::render() ...@@ -351,8 +351,9 @@ void DummyPieSegment2D::render()
{ {
DummyChart* pChart = getRootShape(); DummyChart* pChart = getRootShape();
mfUnitCircleWidthAngleDegree = std::fmod(mfUnitCircleWidthAngleDegree, 360.0); while(mfUnitCircleWidthAngleDegree>360)
if(mfUnitCircleWidthAngleDegree) mfUnitCircleWidthAngleDegree -= 360.0;
while(mfUnitCircleWidthAngleDegree<0)
mfUnitCircleWidthAngleDegree += 360.0; mfUnitCircleWidthAngleDegree += 360.0;
pChart->m_GLRender.GeneratePieSegment2D(mfUnitCircleInnerRadius, mfUnitCircleOuterRadius, pChart->m_GLRender.GeneratePieSegment2D(mfUnitCircleInnerRadius, mfUnitCircleOuterRadius,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment