fix(dave2d): follow lvgl changes (#5659)
This commit is contained in:
committed by
GitHub
parent
2eef56857b
commit
cb61ba6ed1
@@ -128,9 +128,9 @@ static void _dave2d_buf_invalidate_cache_cb(lv_draw_buf_t * draw_buf, const lv_a
|
||||
uint32_t stride = header->stride;
|
||||
lv_color_format_t cf = header->cf;
|
||||
|
||||
uint8_t * address = buf;
|
||||
uint8_t * address = draw_buf->data;
|
||||
int32_t i = 0;
|
||||
uint32_t bytes_per_pixel = lv_color_format_get_size(color_format);
|
||||
uint32_t bytes_per_pixel = lv_color_format_get_size(cf);
|
||||
int32_t width = lv_area_get_width(area);
|
||||
int32_t lines = lv_area_get_height(area);
|
||||
int32_t bytes_to_flush_per_line = (int32_t)width * (int32_t)bytes_per_pixel;
|
||||
|
||||
Reference in New Issue
Block a user