draw line fixes

the positions weren't pixel perfect
This commit is contained in:
Gabor Kiss-Vamosi
2019-09-11 15:30:13 +02:00
parent 7d675cf1d1
commit eb6e8c4563
3 changed files with 10 additions and 6 deletions

View File

@@ -451,7 +451,7 @@ static void draw_shadow(const lv_area_t * coords, const lv_area_t * clip, const
lv_coord_t corner_size = sw + r_sh;
lv_opa_t sh_buf[corner_size * corner_size];
lv_opa_t * sh_buf = lv_draw_buf_get(corner_size * corner_size);
shadow_draw_corner_buf(&sh_rect_area, sh_buf, style->body.shadow.width, r_sh);
bool simple_mode = true;
@@ -761,6 +761,7 @@ static void draw_shadow(const lv_area_t * coords, const lv_area_t * clip, const
lv_draw_mask_remove_id(mask_rout_id);
lv_draw_buf_release(mask_buf);
lv_draw_buf_release(sh_buf);
}
static void shadow_draw_corner_buf(const lv_area_t * coords, lv_opa_t * sh_buf, lv_coord_t sw, lv_coord_t r)