mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
run code formatter
This commit is contained in:
parent
3e53ed7335
commit
a66810dd0d
@ -94,8 +94,6 @@ void lv_example_gridnav_3(void)
|
||||
lv_label_set_text(label, "Button 4");
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -37,7 +37,6 @@ static void new_theme_init_and_set(void)
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Extending the current theme
|
||||
*/
|
||||
|
@ -2,7 +2,6 @@
|
||||
#if LV_BUILD_EXAMPLES && LV_USE_BTN && LV_USE_LABEL
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Opacity and Transformations
|
||||
*/
|
||||
|
@ -31,7 +31,6 @@ void lv_example_arc_2(void)
|
||||
lv_anim_start(&a);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -2,7 +2,6 @@
|
||||
#if LV_USE_SLIDER && LV_BUILD_EXAMPLES
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Show how to style a slider.
|
||||
*/
|
||||
|
@ -429,7 +429,8 @@ void _lv_disp_refr_timer(lv_timer_t * tmr)
|
||||
perf_monitor.render_cnt = 0;
|
||||
|
||||
uint32_t cpu = 100 - lv_timer_get_idle();
|
||||
lv_label_set_text_fmt(perf_label, "%"LV_PRIu32" FPS %"LV_PRIu32"%% CPU\n %"LV_PRIu32"ms (%"LV_PRIu32" | %"LV_PRIu32")", fps, cpu, render_time + flush_time, render_time, flush_time);
|
||||
lv_label_set_text_fmt(perf_label, "%"LV_PRIu32" FPS %"LV_PRIu32"%% CPU\n %"LV_PRIu32"ms (%"LV_PRIu32" | %"LV_PRIu32")",
|
||||
fps, cpu, render_time + flush_time, render_time, flush_time);
|
||||
void sysmon_perf_observer_cb(uint32_t fps, uint32_t cpu, uint32_t render_time, uint32_t flush_time);
|
||||
sysmon_perf_observer_cb(fps, cpu, render_time, flush_time);
|
||||
}
|
||||
|
@ -260,7 +260,6 @@ void test_dropdown_keypad(void)
|
||||
lv_group_del(g);
|
||||
}
|
||||
|
||||
|
||||
void test_dropdown_encoder(void)
|
||||
{
|
||||
lv_obj_clean(lv_scr_act());
|
||||
@ -317,7 +316,6 @@ void test_dropdown_encoder(void)
|
||||
lv_group_del(g);
|
||||
}
|
||||
|
||||
|
||||
void test_dropdown_render_1(void)
|
||||
{
|
||||
lv_obj_clean(lv_scr_act());
|
||||
@ -360,7 +358,6 @@ void test_dropdown_render_1(void)
|
||||
lv_obj_set_style_bg_color(list, lv_color_hex3(0xf00), LV_PART_SELECTED | LV_STATE_CHECKED);
|
||||
lv_dropdown_set_selected(dd3, 3);
|
||||
|
||||
|
||||
TEST_ASSERT_EQUAL_SCREENSHOT("dropdown_1.png");
|
||||
}
|
||||
|
||||
@ -441,5 +438,4 @@ void test_dropdown_should_list_on_top(void)
|
||||
TEST_ASSERT_EQUAL_INT(2, lv_obj_get_index(list));
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -16,7 +16,6 @@ static const lv_obj_class_t event_object_deletion_class = {
|
||||
.base_class = &lv_obj_class
|
||||
};
|
||||
|
||||
|
||||
/* Checks for memory leaks/invalid memory accesses on deleted objects */
|
||||
void test_event_object_deletion(void)
|
||||
{
|
||||
|
@ -3,7 +3,6 @@
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
const char * read_exp =
|
||||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam sed maximus orci. Morbi massa nisi, varius eu convallis ac, venenatis at metus. In in nibh id urna pretium feugiat vitae eu libero. Ut eget fringilla eros. Nunc ullamcorper lectus mauris, vel rhoncus velit volutpat et. Phasellus sed molestie massa. Maecenas quis dui sollicitudin, vulputate nunc ut, dictum quam. Nam a congue lorem. Nulla non facilisis sapien. Ut luctus nulla nibh, sed finibus urna porta non. Duis aliquet augue id urna euismod auctor. Integer pellentesque vulputate enim non mattis. Donec finibus mattis dolor, et feugiat nisi pharetra porta. Mauris ullamcorper cursus magna. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.";
|
||||
|
||||
|
@ -5,7 +5,6 @@
|
||||
|
||||
#include "unity/unity.h"
|
||||
|
||||
|
||||
#define NUM_SNAPSHOTS 1
|
||||
|
||||
void test_snapshot_should_not_leak_memory(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user