From d55a27887eff352320a3fc527ecb8a4c04d4a02d Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Tue, 23 Feb 2021 11:29:33 +0100 Subject: [PATCH] fix(draw): incorrent dash line redraw --- src/lv_draw/lv_draw_line.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lv_draw/lv_draw_line.c b/src/lv_draw/lv_draw_line.c index 486db383e..e85e514da 100644 --- a/src/lv_draw/lv_draw_line.c +++ b/src/lv_draw/lv_draw_line.c @@ -175,7 +175,7 @@ LV_ATTRIBUTE_FAST_MEM static void draw_line_hor(const lv_point_t * point1, const lv_coord_t dash_start = 0; if(dashed) { - dash_start = (point1->x) % (dsc->dash_gap + dsc->dash_width); + dash_start = (vdb->area.x1 + draw_area.x1) % (dsc->dash_gap + dsc->dash_width); } lv_opa_t * mask_buf = lv_mem_buf_get(draw_area_w);