1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

fix belnding issue. Fixes #1417

This commit is contained in:
Gabor Kiss-Vamosi 2020-03-24 09:37:03 +01:00
parent 69b22d4c54
commit ec57e921e2

View File

@ -64,9 +64,11 @@ static inline lv_color_t color_blend_true_color_subtractive(lv_color_t fg, lv_co
#define FILL_NORMAL_MASK_PX(out_x, color) \
if(*mask_tmp_x) { \
if(disp_buf_tmp[out_x].full != color.full) { \
if(*mask_tmp_x == LV_OPA_COVER) disp_buf_tmp[out_x] = color; \
disp_buf_tmp[out_x] = lv_color_mix(color, disp_buf_tmp[out_x], *mask_tmp_x); ; \
else disp_buf_tmp[out_x] = lv_color_mix(color, disp_buf_tmp[out_x], *mask_tmp_x); ; \
} \
} \
mask_tmp_x++;
@ -371,7 +373,7 @@ static void fill_normal(const lv_area_t * disp_area, lv_color_t * disp_buf, con
if(opa > LV_OPA_MAX) {
for(y = draw_area->y1; y <= draw_area->y2; y++) {
const lv_opa_t * mask_tmp_x = &mask_tmp[draw_area->x1];
#if 0
#if 1
for(x = draw_area->x1; x <= draw_area->x2; x++) {
FILL_NORMAL_MASK_PX(x, color)
}