1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

fix(draw): incorrent dash line redraw

This commit is contained in:
Gabor Kiss-Vamosi 2021-02-23 11:29:33 +01:00
parent 1d53278958
commit d55a27887e

View File

@ -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);