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 May 6, 2024
1 parent c4bfdfe commit 7ab558c
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 7ab558c

Please sign in to comment.