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

canvas blur fixes

This commit is contained in:
Gabor Kiss-Vamosi 2019-11-06 13:12:44 +01:00
parent c1aae99208
commit 1a38783921

View File

@ -397,7 +397,7 @@ void lv_canvas_blur_hor(lv_obj_t * canvas, uint16_t r)
uint16_t r_back = r / 2;
uint16_t r_front = r / 2;
if(r & 0x1 == 0) r_back--;
if((r & 0x1) == 0) r_back--;
uint8_t line_buf[10000];
lv_img_dsc_t line_img;
@ -483,7 +483,7 @@ void lv_canvas_blur_ver(lv_obj_t * canvas, uint16_t r)
uint16_t r_back = r / 2;
uint16_t r_front = r / 2;
if(r & 0x1 == 0) r_back--;
if((r & 0x1) == 0) r_back--;
uint8_t col_buf[10000];
lv_img_dsc_t line_img;