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

rect bg draw: fix overdrawn line in the middle with LV_RADIUS_CIRCLE

This commit is contained in:
Gabor Kiss-Vamosi 2020-03-04 09:09:28 +01:00
parent 2f44d9045b
commit 2e9f1139e3

View File

@ -298,8 +298,10 @@ static void draw_bg(const lv_area_t * coords, const lv_area_t * clip, lv_draw_re
dsc->bg_color, NULL, LV_DRAW_MASK_RES_FULL_COVER, opa, dsc->bg_blend_mode);
fill_area.y1 = coords_bg.y2 - rout;
if(fill_area.y1 <= fill_area.y2) fill_area.y1 = fill_area.y2 + 1; /*Avoid overdrawing the last line*/
fill_area.y2 = coords_bg.y2;
lv_blend_fill(clip, &fill_area,
dsc->bg_color, NULL, LV_DRAW_MASK_RES_FULL_COVER, opa, dsc->bg_blend_mode);