Skip to content

Commit 0b8b86e

Browse files
committed
spline: Initialize cap style to round
The spline demo program previously initialized the cap style as 'butt', which caused inconsistent spline rendering with an unexpected blank half-circle. This commit changes the cap style to 'round', ensuring more consistent spline movement and rendering without flickering.
1 parent 92ef3c1 commit 0b8b86e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/spline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ static void _apps_spline_init(apps_spline_t *spline,
129129
_twin_widget_init(&spline->widget, parent, 0, preferred, dispatch);
130130
twin_widget_set(&spline->widget, 0xffffffff);
131131
spline->line_width = twin_int_to_fixed(100);
132-
spline->cap_style = TwinCapButt;
132+
spline->cap_style = TwinCapRound;
133133
spline->points[0].x = twin_int_to_fixed(100);
134134
spline->points[0].y = twin_int_to_fixed(100);
135135
spline->points[1].x = twin_int_to_fixed(300);

0 commit comments

Comments
 (0)