Skip to content

Commit

Permalink
spline: Initialize cap style to round
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jserv committed Sep 5, 2024
1 parent 92ef3c1 commit 0b8b86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/spline.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ static void _apps_spline_init(apps_spline_t *spline,
_twin_widget_init(&spline->widget, parent, 0, preferred, dispatch);
twin_widget_set(&spline->widget, 0xffffffff);
spline->line_width = twin_int_to_fixed(100);
spline->cap_style = TwinCapButt;
spline->cap_style = TwinCapRound;
spline->points[0].x = twin_int_to_fixed(100);
spline->points[0].y = twin_int_to_fixed(100);
spline->points[1].x = twin_int_to_fixed(300);
Expand Down

0 comments on commit 0b8b86e

Please sign in to comment.