Skip to content

Commit

Permalink
Fixed #631 (dxDrawCircle ratio parameter hard to calculate). Ratio no…
Browse files Browse the repository at this point in the history
…w only scales the circle width
  • Loading branch information
ccw808 committed Oct 2, 2018
1 parent cee63da commit e1980ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Client/core/Graphics/CGraphics.cpp
Expand Up @@ -843,7 +843,7 @@ void CGraphics::DrawCircleQueued(float fX, float fY, float fRadius, float fStart
PrimitiveVertice vert;
float curAngle = fStartAngle + siSeg * kfSegmentAngle;
vert.fX = fX + fRadius * cos(curAngle) * fRatio;
vert.fY = fY + fRadius * sin(curAngle) / fRatio;
vert.fY = fY + fRadius * sin(curAngle);
vert.fZ = 0.0f;
vert.Color = ulColor;
pVecVertices->push_back(vert);
Expand Down

0 comments on commit e1980ab

Please sign in to comment.