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

fix(draw) fix gradent calculation of the rectangle is clipped

This commit is contained in:
Gabor Kiss-Vamosi 2021-08-17 16:53:46 +02:00
parent 01237da474
commit 13e347055b

View File

@ -177,7 +177,7 @@ LV_ATTRIBUTE_FAST_MEM static void draw_bg(const lv_area_t * coords, const lv_are
grad_map = lv_mem_buf_get(coords_w * sizeof(lv_color_t));
int32_t i;
for(i = 0; i < coords_w; i++) {
grad_map[i] = grad_get(dsc, coords_w, i);
grad_map[i] = grad_get(dsc, coords_w, i - coords_bg.x1);
}
}