From 673e0d3d48ad02131a6de83b3ea84dfb35339118 Mon Sep 17 00:00:00 2001 From: relikd Date: Mon, 8 Dec 2025 23:30:50 +0100 Subject: [PATCH] fix: quadratic curve --- baRSS/Helper/TinySVG.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/baRSS/Helper/TinySVG.m b/baRSS/Helper/TinySVG.m index 9509eb9..a50a258 100644 --- a/baRSS/Helper/TinySVG.m +++ b/baRSS/Helper/TinySVG.m @@ -67,7 +67,7 @@ static void finishOp(CGMutablePathRef path, struct SVGState *state) { } else if (op == 'Q' && state->iNum == 4) { state->x = state->num[2]; state->y = state->num[3]; - CGPathAddCurveToPoint(path, NULL, state->num[0] * state->scale, state->num[1] * state->scale, state->num[0] * state->scale, state->num[1] * state->scale, state->x * state->scale, state->y * state->scale); + CGPathAddQuadCurveToPoint(path, NULL, state->num[0] * state->scale, state->num[1] * state->scale, state->x * state->scale, state->y * state->scale); } else if (op == 'C' && state->iNum == 6) { state->x = state->num[4];