fix(draw_sw): wrong image buffer calculation (#7387)

Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
This commit is contained in:
Neo Xu
2024-12-02 17:30:48 +08:00
committed by GitHub
parent a87a28bcd4
commit 51aadcd87d
5 changed files with 1 additions and 1 deletions

View File

@@ -349,7 +349,7 @@ static void radius_only(lv_draw_unit_t * draw_unit, const lv_draw_image_dsc_t *
else if(cf_ori == LV_COLOR_FORMAT_A8) {
int32_t y_ofs = blend_area.y1 - img_coords->y1;
int32_t x_ofs = blend_area.x1 - img_coords->x1;
lv_memcpy(mask_buf, decoded->data + img_stride + y_ofs * img_stride + x_ofs, blend_w);
lv_memcpy(mask_buf, decoded->data + y_ofs * img_stride + x_ofs, blend_w);
}
else {
lv_memset(mask_buf, 0xff, blend_w);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB