Skip to content

Commit

Permalink
fix(buf_copy): fix lv_draw_sw_buffer_copy
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Apr 26, 2023
1 parent a257414 commit b603fb9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/draw/sw/lv_draw_sw.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ void lv_draw_sw_buffer_copy(lv_draw_ctx_t * draw_ctx,
src_bufc += src_stride * px_size * src_area->y1;
src_bufc += src_area->x1 * px_size;

src_stride *= px_size;
dest_stride *= px_size;

uint32_t line_length = lv_area_get_width(dest_area) * px_size;
lv_coord_t y;
for(y = dest_area->y1; y <= dest_area->y2; y++) {
Expand Down

0 comments on commit b603fb9

Please sign in to comment.