From 1a38783921864820cae408c79660f6f0bb868231 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Wed, 6 Nov 2019 13:12:44 +0100 Subject: [PATCH] canvas blur fixes --- src/lv_objx/lv_canvas.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lv_objx/lv_canvas.c b/src/lv_objx/lv_canvas.c index c7b1dd84a..5eabfd8c7 100644 --- a/src/lv_objx/lv_canvas.c +++ b/src/lv_objx/lv_canvas.c @@ -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;