Skip to content

Commit 3c61506

Browse files
committed
Remove the duplicate starting and ending points
The starting point and the first left segment's A point are the same. The ending point and the original spline's D point are the same.
1 parent 3ff36b9 commit 3c61506

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/spline.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static void _twin_spline_decompose(twin_path_t *path,
103103
} while (!is_flat(&left, tolerance_squared));
104104

105105
/* Draw the left segment */
106-
_twin_path_sdraw(path, left.a.x, left.a.y);
106+
_twin_path_sdraw(path, left.d.x, left.d.y);
107107

108108
/* Update spline to the right segment */
109109
memcpy(spline, &right, sizeof(twin_spline_t));
@@ -132,7 +132,6 @@ void _twin_path_scurve(twin_path_t *path,
132132
};
133133
_twin_spline_decompose(path, &spline,
134134
TWIN_SFIXED_TOLERANCE * TWIN_SFIXED_TOLERANCE);
135-
_twin_path_sdraw(path, x3, y3);
136135
}
137136

138137
void twin_path_curve(twin_path_t *path,

0 commit comments

Comments
 (0)