@@ -197,17 +197,17 @@ void CUIRect::DrawOutline(ColorRGBA Color, int Corners, float Rounding) const
197197
198198 std::vector<IGraphics::CLineItem> Lines;
199199
200- auto AddCornerArc = [&](float cx , float cy , float startAngle , int cornerFlag ) {
201- if ((Corners & cornerFlag ) && Rounding > 0 .0f )
200+ auto AddCornerArc = [&](float Cx , float Cy , float StartAngle , int CornerFlag ) {
201+ if ((Corners & CornerFlag ) && Rounding > 0 .0f )
202202 {
203203 for (int i = 0 ; i < NumSegments; ++i)
204204 {
205- float a0 = startAngle + i * AngleStep;
206- float a1 = startAngle + (i + 1 ) * AngleStep;
207- float x0 = cx + std::cos (a0) * Rounding;
208- float y0 = cy + std::sin (a0) * Rounding;
209- float x1 = cx + std::cos (a1) * Rounding;
210- float y1 = cy + std::sin (a1) * Rounding;
205+ float a0 = StartAngle + i * AngleStep;
206+ float a1 = StartAngle + (i + 1 ) * AngleStep;
207+ float x0 = Cx + std::cos (a0) * Rounding;
208+ float y0 = Cy + std::sin (a0) * Rounding;
209+ float x1 = Cx + std::cos (a1) * Rounding;
210+ float y1 = Cy + std::sin (a1) * Rounding;
211211 Lines.emplace_back (x0, y0, x1, y1);
212212 }
213213 }
@@ -260,17 +260,17 @@ void CUIRect::DrawSpecificOutline(ColorRGBA Color, int Corners, int Sides, float
260260
261261 std::vector<IGraphics::CLineItem> Lines;
262262
263- auto AddCornerArc = [&](float cx , float cy , float startAngle , int cornerFlag ) {
264- if ((Corners & cornerFlag ) && Rounding > 0 .0f )
263+ auto AddCornerArc = [&](float Cx , float Cy , float StartAngle , int CornerFlag ) {
264+ if ((Corners & CornerFlag ) && Rounding > 0 .0f )
265265 {
266266 for (int i = 0 ; i < NumSegments; ++i)
267267 {
268- float a0 = startAngle + i * AngleStep;
269- float a1 = startAngle + (i + 1 ) * AngleStep;
270- float x0 = cx + std::cos (a0) * Rounding;
271- float y0 = cy + std::sin (a0) * Rounding;
272- float x1 = cx + std::cos (a1) * Rounding;
273- float y1 = cy + std::sin (a1) * Rounding;
268+ float a0 = StartAngle + i * AngleStep;
269+ float a1 = StartAngle + (i + 1 ) * AngleStep;
270+ float x0 = Cx + std::cos (a0) * Rounding;
271+ float y0 = Cy + std::sin (a0) * Rounding;
272+ float x1 = Cx + std::cos (a1) * Rounding;
273+ float y1 = Cy + std::sin (a1) * Rounding;
274274 Lines.emplace_back (x0, y0, x1, y1);
275275 }
276276 }
0 commit comments