Skip to content

Commit

Permalink
chore(scale): Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
C47D committed Jun 4, 2024
1 parent 3a97451 commit 4f6628b
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/widgets/scale/lv_scale.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,12 +487,13 @@ static void lv_scale_event(const lv_obj_class_t * class_p, lv_event_t * event)
scale_find_section_tick_idx(obj);
scale_calculate_main_compensation(obj);

if (scale->draw_ticks_on_top) {
scale_draw_main(obj, event);
scale_draw_indicator(obj, event);
} else {
scale_draw_indicator(obj, event);
scale_draw_main(obj, event);
if(scale->draw_ticks_on_top) {
scale_draw_main(obj, event);
scale_draw_indicator(obj, event);
}
else {
scale_draw_indicator(obj, event);
scale_draw_main(obj, event);
}
}
}
Expand All @@ -501,12 +502,13 @@ static void lv_scale_event(const lv_obj_class_t * class_p, lv_event_t * event)
scale_find_section_tick_idx(obj);
scale_calculate_main_compensation(obj);

if (scale->draw_ticks_on_top) {
scale_draw_main(obj, event);
scale_draw_indicator(obj, event);
} else {
scale_draw_indicator(obj, event);
scale_draw_main(obj, event);
if(scale->draw_ticks_on_top) {
scale_draw_main(obj, event);
scale_draw_indicator(obj, event);
}
else {
scale_draw_indicator(obj, event);
scale_draw_main(obj, event);
}
}
}
Expand Down

0 comments on commit 4f6628b

Please sign in to comment.