From cd6f99c71809d8fc528fb81d9e681b43bac7aefc Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Sat, 22 Jun 2019 00:46:35 +0200 Subject: [PATCH] update gauge draw --- src/lv_objx/lv_gauge.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lv_objx/lv_gauge.c b/src/lv_objx/lv_gauge.c index 7abea8733..9c2e41725 100644 --- a/src/lv_objx/lv_gauge.c +++ b/src/lv_objx/lv_gauge.c @@ -279,11 +279,10 @@ static bool lv_gauge_design(lv_obj_t * gauge, const lv_area_t * mask, lv_design_ uint16_t line_cnt_tmp = ext->lmeter.line_cnt; ancestor_design(gauge, mask, mode); /*To draw lines*/ - /*Temporally modify the line meter to draw thicker and longer lines where labels are*/ + /*Temporally modify the line meter to draw longer lines where labels are*/ lv_style_t style_tmp; lv_style_copy(&style_tmp, style); ext->lmeter.line_cnt = ext->label_count; /*Only to labels*/ - style_tmp.line.width = style_tmp.line.width * 2; /*Ticker lines*/ style_tmp.body.padding.left = style_tmp.body.padding.left * 2; /*Longer lines*/ style_tmp.body.padding.right = style_tmp.body.padding.right * 2; /*Longer lines*/ gauge->style_p = &style_tmp;