Draw selection rectangle with line height rather than font height

This commit is contained in:
Themba Dube
2019-03-27 19:19:50 -04:00
parent 97089da7f5
commit 5919cf5613

View File

@@ -189,7 +189,7 @@ void lv_draw_label(const lv_area_t * coords, const lv_area_t * mask, const lv_st
sel_coords.x1 = pos.x;
sel_coords.y1 = pos.y;
sel_coords.x2 = pos.x + letter_w + style->text.letter_space - 1;
sel_coords.y2 = pos.y + lv_font_get_height(font) - 1;
sel_coords.y2 = pos.y + line_height - 1;
lv_draw_rect(&sel_coords, mask, &sel_style, opa);
}
}