From ef0ce5280b5480b1dd6b78baf298c370d53c8b12 Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Sun, 24 Aug 2025 16:19:32 +0900 Subject: [PATCH] windows: Fixed arc drawing sweep direction to match Unix/Mac platforms - Changed `negative` parameter logic in `drawArc` function --- windows/drawpath.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/drawpath.cpp b/windows/drawpath.cpp index 4d7002f3..843a1b6a 100644 --- a/windows/drawpath.cpp +++ b/windows/drawpath.cpp @@ -143,9 +143,9 @@ static void drawArc(uiDrawPath *p, struct arc *a, void (*startFunction)(uiDrawPa as.size.height = a->radius; as.rotationAngle = 0; // as above, not relevant for circles if (a->negative) - as.sweepDirection = D2D1_SWEEP_DIRECTION_COUNTER_CLOCKWISE; - else as.sweepDirection = D2D1_SWEEP_DIRECTION_CLOCKWISE; + else + as.sweepDirection = D2D1_SWEEP_DIRECTION_COUNTER_CLOCKWISE; // TODO explain the outer if if (!a->negative) if (a->sweep > uiPi)