diff options
author | Benign X <1341398182@qq.com> | 2024-02-01 16:46:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-01 16:46:36 +0800 |
commit | 2435e0352a0845c0f7e674419e61df34b83effc7 (patch) | |
tree | 36ce688df338cb5abc3313e526c7e2d6519cc17d | |
parent | 4ce16055e774244912df23505d7e7052ddea84c8 (diff) | |
download | lvgl-2435e0352a0845c0f7e674419e61df34b83effc7.tar.gz lvgl-2435e0352a0845c0f7e674419e61df34b83effc7.zip |
chore(arc): fix typo (#5553)
-rw-r--r-- | src/widgets/arc/lv_arc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/widgets/arc/lv_arc.c b/src/widgets/arc/lv_arc.c index 3e0238bcb..994efa759 100644 --- a/src/widgets/arc/lv_arc.c +++ b/src/widgets/arc/lv_arc.c @@ -469,11 +469,10 @@ static void lv_arc_event(const lv_obj_class_t * class_p, lv_event_t * e) if(arc->dragging == false) { int32_t indic_width = lv_obj_get_style_arc_width(obj, LV_PART_INDICATOR); r -= indic_width; - /*Add some more sensitive area if there is no advanced git testing. + /*Add some more sensitive area if there is no advanced hit testing. * (Advanced hit testing is more precise)*/ if(lv_obj_has_flag(obj, LV_OBJ_FLAG_ADV_HITTEST)) { r -= indic_width; - } else { r -= LV_MAX(r / 4, indic_width); @@ -503,7 +502,7 @@ static void lv_arc_event(const lv_obj_class_t * class_p, lv_event_t * e) angle -= arc->rotation; angle -= arc->bg_angle_start; /*Make the angle relative to the start angle*/ - /* If we click near the bg_angle_start the angle will be close to 360° instead of an small angle */ + /* If we click near the bg_angle_start the angle will be close to 360° instead of a small angle */ if(angle < 0) angle += 360; const uint32_t circumference = (uint32_t)((2U * r * 314U) / 100U); /* Equivalent to: 2r * 3.14, avoiding floats */ |