mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
parent
a1326dc31a
commit
a06e11478e
@ -820,7 +820,7 @@ static void value_update(lv_obj_t * obj)
|
||||
}
|
||||
break;
|
||||
case LV_ARC_MODE_REVERSE:
|
||||
angle = lv_map(arc->value, arc->min_value, arc->max_value, arc->bg_angle_start, bg_end);
|
||||
angle = lv_map(arc->value, arc->min_value, arc->max_value, bg_end, arc->bg_angle_start);
|
||||
lv_arc_set_angles(obj, angle, arc->bg_angle_end);
|
||||
break;
|
||||
case LV_ARC_MODE_NORMAL:
|
||||
|
@ -105,7 +105,7 @@ void test_arc_should_update_angles_when_changing_to_symmetrical_mode_value_more_
|
||||
/* See #2522 for more information */
|
||||
void test_arc_angles_when_reversed(void)
|
||||
{
|
||||
uint16_t expected_start_angle = 36;
|
||||
uint16_t expected_start_angle = 54;
|
||||
uint16_t expected_end_angle = 90;
|
||||
int16_t expected_value = 40;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user