1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

fix(event): fix typo prerpocess -> preprocess (#4062)

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
_VIFEXTech 2023-03-15 13:47:40 +08:00 committed by GitHub
parent 98ced0114c
commit 2b220b29d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -61,7 +61,7 @@ void _lv_event_pop(lv_event_t * e)
event_head = e->prev;
}
lv_res_t lv_event_send(lv_event_list_t * list, lv_event_t * e, bool prerpocess)
lv_res_t lv_event_send(lv_event_list_t * list, lv_event_t * e, bool preprocess)
{
if(list == NULL) return LV_RES_OK;
@ -69,7 +69,7 @@ lv_res_t lv_event_send(lv_event_list_t * list, lv_event_t * e, bool prerpocess)
for(i = 0; i < list->cnt; i++) {
if(list->dsc[i].cb == NULL) continue;
bool is_preprocessed = (list->dsc[i].filter & LV_EVENT_PREPROCESS) != 0;
if(is_preprocessed != prerpocess) continue;
if(is_preprocessed != preprocess) continue;
lv_event_code_t filter = list->dsc[i].filter & ~LV_EVENT_PREPROCESS;
if(filter == LV_EVENT_ALL || filter == e->code) {
e->user_data = list->dsc[i].user_data;

View File

@ -140,8 +140,7 @@ void _lv_event_push(lv_event_t * e);
void _lv_event_pop(lv_event_t * e);
lv_res_t lv_event_send(lv_event_list_t * list, lv_event_t * e, bool prerpocess);
lv_res_t lv_event_send(lv_event_list_t * list, lv_event_t * e, bool preprocess);
void lv_event_add(lv_event_list_t * list, lv_event_cb_t cb, lv_event_code_t filter, void * user_data);