Merge branch 'refactor-arc' of https://github.com/jpirnay/crosspoint-reader into mybuild

This commit is contained in:
jpirnay
2026-03-30 18:35:57 +02:00
+3 -1
View File
@@ -998,7 +998,9 @@ void GfxRenderer::drawArc(const int maxRadius, const int cx, const int cy, const
while (xOuter > 0 && (xOuter * xOuter + dy * dy) > outerRadiusSq) { while (xOuter > 0 && (xOuter * xOuter + dy * dy) > outerRadiusSq) {
--xOuter; --xOuter;
} }
while (xInner > 0 && (xInner * xInner + dy * dy) > innerRadiusSq) { // Keep the smallest x that still lies outside/at the inner radius,
// i.e. (x^2 + y^2) >= innerRadiusSq.
while (xInner > 0 && ((xInner - 1) * (xInner - 1) + dy * dy) >= innerRadiusSq) {
--xInner; --xInner;
} }