From 0b8b86e4e38f29d206a3200fe28372eda299833b Mon Sep 17 00:00:00 2001 From: Jim Huang Date: Thu, 5 Sep 2024 21:32:59 +0800 Subject: [PATCH] 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. --- apps/spline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/spline.c b/apps/spline.c index 61b07dc..cd99daf 100644 --- a/apps/spline.c +++ b/apps/spline.c @@ -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);