From 5919cf5613712c03a2e9629024f44e7d2f861fc7 Mon Sep 17 00:00:00 2001 From: Themba Dube Date: Wed, 27 Mar 2019 19:19:50 -0400 Subject: [PATCH] Draw selection rectangle with line height rather than font height --- src/lv_draw/lv_draw_label.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lv_draw/lv_draw_label.c b/src/lv_draw/lv_draw_label.c index 588962050..e8baee80c 100644 --- a/src/lv_draw/lv_draw_label.c +++ b/src/lv_draw/lv_draw_label.c @@ -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); } }