mirror of
https://github.com/lvgl/lvgl.git
synced 2025-02-04 07:13: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:
parent
98ced0114c
commit
2b220b29d8
@ -61,7 +61,7 @@ void _lv_event_pop(lv_event_t * e)
|
|||||||
event_head = e->prev;
|
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;
|
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++) {
|
for(i = 0; i < list->cnt; i++) {
|
||||||
if(list->dsc[i].cb == NULL) continue;
|
if(list->dsc[i].cb == NULL) continue;
|
||||||
bool is_preprocessed = (list->dsc[i].filter & LV_EVENT_PREPROCESS) != 0;
|
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;
|
lv_event_code_t filter = list->dsc[i].filter & ~LV_EVENT_PREPROCESS;
|
||||||
if(filter == LV_EVENT_ALL || filter == e->code) {
|
if(filter == LV_EVENT_ALL || filter == e->code) {
|
||||||
e->user_data = list->dsc[i].user_data;
|
e->user_data = list->dsc[i].user_data;
|
||||||
|
@ -140,8 +140,7 @@ void _lv_event_push(lv_event_t * e);
|
|||||||
|
|
||||||
void _lv_event_pop(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);
|
void lv_event_add(lv_event_list_t * list, lv_event_cb_t cb, lv_event_code_t filter, void * user_data);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user