fix color bleeding on border drawing

Fixes https://forum.lvgl.io/t/border-dont-cover-calendar/3029/4
This commit is contained in:
Gabor Kiss-Vamosi
2020-08-23 07:44:29 +02:00
parent 35e09885fb
commit c0f6ff4d42
4 changed files with 6 additions and 1 deletions

View File

@@ -391,6 +391,7 @@ LV_ATTRIBUTE_FAST_MEM static void draw_border(const lv_area_t * coords, const lv
if(dsc->border_opa <= LV_OPA_MIN) return;
if(dsc->border_width == 0) return;
if(dsc->border_side == LV_BORDER_SIDE_NONE) return;
if(dsc->border_post) return;
int32_t coords_w = lv_area_get_width(coords);
int32_t coords_h = lv_area_get_height(coords);