mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-30 07:06:19 +08:00
chore: remove BOM and fix typos (#4685)
This commit is contained in:
+2
-2
@@ -19,7 +19,7 @@
|
||||
*----------------*/
|
||||
|
||||
/*Store the image of the glyphs*/
|
||||
static LV_ATTRIBUTE_LARGE_CONST const uint8_t gylph_bitmap[] = {
|
||||
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
|
||||
/* U+20 " " */
|
||||
|
||||
/* U+61 "a" */
|
||||
@@ -285,7 +285,7 @@ static const lv_font_fmt_txt_kern_classes_t kern_classes =
|
||||
|
||||
/*Store all the custom data of the font*/
|
||||
static lv_font_fmt_txt_dsc_t font_dsc = {
|
||||
.glyph_bitmap = gylph_bitmap,
|
||||
.glyph_bitmap = glyph_bitmap,
|
||||
.glyph_dsc = glyph_dsc,
|
||||
.cmaps = cmaps,
|
||||
.kern_dsc = &kern_classes,
|
||||
+2
-2
@@ -19,7 +19,7 @@
|
||||
*----------------*/
|
||||
|
||||
/*Store the image of the glyphs*/
|
||||
static LV_ATTRIBUTE_LARGE_CONST const uint8_t gylph_bitmap[] = {
|
||||
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
|
||||
/* U+20 " " */
|
||||
|
||||
/* U+61 "a" */
|
||||
@@ -323,7 +323,7 @@ static const lv_font_fmt_txt_kern_classes_t kern_classes =
|
||||
|
||||
/*Store all the custom data of the font*/
|
||||
static lv_font_fmt_txt_dsc_t font_dsc = {
|
||||
.glyph_bitmap = gylph_bitmap,
|
||||
.glyph_bitmap = glyph_bitmap,
|
||||
.glyph_dsc = glyph_dsc,
|
||||
.cmaps = cmaps,
|
||||
.kern_dsc = &kern_classes,
|
||||
+2
-2
@@ -20,7 +20,7 @@
|
||||
*----------------*/
|
||||
|
||||
/*Store the image of the glyphs*/
|
||||
static LV_ATTRIBUTE_LARGE_CONST const uint8_t gylph_bitmap[] = {
|
||||
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
|
||||
/* U+20 " " */
|
||||
|
||||
/* U+61 "a" */
|
||||
@@ -474,7 +474,7 @@ static const lv_font_fmt_txt_kern_classes_t kern_classes =
|
||||
|
||||
/*Store all the custom data of the font*/
|
||||
static lv_font_fmt_txt_dsc_t font_dsc = {
|
||||
.glyph_bitmap = gylph_bitmap,
|
||||
.glyph_bitmap = glyph_bitmap,
|
||||
.glyph_dsc = glyph_dsc,
|
||||
.cmaps = cmaps,
|
||||
.kern_dsc = &kern_classes,
|
||||
@@ -101,7 +101,7 @@ static void show_scene_report(void);
|
||||
static void calc_scene_statistics(void);
|
||||
static lv_result_t load_next_scene(void);
|
||||
static void next_scene_timer_cb(lv_timer_t * timer);
|
||||
static void single_scene_finsih_timer_cb(lv_timer_t * timer);
|
||||
static void single_scene_finish_timer_cb(lv_timer_t * timer);
|
||||
static void dummy_flush_cb(lv_display_t * drv, const lv_area_t * area, uint8_t * pxmap);
|
||||
static void generate_report(void);
|
||||
|
||||
@@ -717,10 +717,10 @@ void lv_demo_benchmark_run_scene(lv_demo_benchmark_mode_t _mode, uint16_t scene_
|
||||
lv_refr_now(NULL);
|
||||
}
|
||||
|
||||
single_scene_finsih_timer_cb(NULL);
|
||||
single_scene_finish_timer_cb(NULL);
|
||||
}
|
||||
else {
|
||||
lv_timer_t * t = lv_timer_create(single_scene_finsih_timer_cb, SCENE_TIME, NULL);
|
||||
lv_timer_t * t = lv_timer_create(single_scene_finish_timer_cb, SCENE_TIME, NULL);
|
||||
lv_timer_set_repeat_count(t, 1);
|
||||
}
|
||||
}
|
||||
@@ -864,7 +864,7 @@ static void next_scene_timer_cb(lv_timer_t * timer)
|
||||
}
|
||||
}
|
||||
|
||||
static void single_scene_finsih_timer_cb(lv_timer_t * timer)
|
||||
static void single_scene_finish_timer_cb(lv_timer_t * timer)
|
||||
{
|
||||
LV_UNUSED(timer);
|
||||
calc_scene_statistics();
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
* STATIC PROTOTYPES
|
||||
**********************/
|
||||
static lv_obj_t * switch_create(lv_obj_t * parent, const char * title, lv_obj_flag_t flag, bool en);
|
||||
static void generic_swicth_event_cb(lv_event_t * e);
|
||||
static void generic_switch_event_cb(lv_event_t * e);
|
||||
|
||||
/**********************
|
||||
* STATIC VARIABLES
|
||||
@@ -88,7 +88,7 @@ static lv_obj_t * switch_create(lv_obj_t * parent, const char * title, lv_obj_fl
|
||||
lv_obj_set_flex_grow(label, 1);
|
||||
|
||||
lv_obj_t * sw = lv_switch_create(cont);
|
||||
lv_obj_add_event(sw, generic_swicth_event_cb, LV_EVENT_VALUE_CHANGED, (void *)((lv_uintptr_t) flag));
|
||||
lv_obj_add_event(sw, generic_switch_event_cb, LV_EVENT_VALUE_CHANGED, (void *)((lv_uintptr_t) flag));
|
||||
if(en) {
|
||||
lv_obj_add_state(sw, LV_STATE_CHECKED);
|
||||
lv_obj_add_flag(list, flag);
|
||||
@@ -101,7 +101,7 @@ static lv_obj_t * switch_create(lv_obj_t * parent, const char * title, lv_obj_fl
|
||||
return cont;
|
||||
}
|
||||
|
||||
static void generic_swicth_event_cb(lv_event_t * e)
|
||||
static void generic_switch_event_cb(lv_event_t * e)
|
||||
{
|
||||
lv_obj_t * sw = lv_event_get_target(e);
|
||||
lv_obj_flag_t flag = (lv_obj_flag_t)((lv_uintptr_t)lv_event_get_user_data(e));
|
||||
|
||||
Reference in New Issue
Block a user