mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
minor fixes
This commit is contained in:
parent
512eb05a22
commit
aa4897cdc5
@ -1343,8 +1343,6 @@ lv_res_t lv_event_send(lv_obj_t * obj, lv_event_t event, const void * data)
|
||||
*/
|
||||
lv_res_t lv_event_send_func(lv_event_cb_t event_cb, lv_obj_t * obj, lv_event_t event, const void * data)
|
||||
{
|
||||
if(event_cb == NULL) return LV_RES_OK;
|
||||
|
||||
lv_event_temp_data_t event_temp_data;
|
||||
event_temp_data.obj = obj;
|
||||
event_temp_data.deleted = false;
|
||||
|
@ -80,6 +80,7 @@ void lv_draw_rect(const lv_area_t * coords, const lv_area_t * mask, const lv_sty
|
||||
lv_opa_t opa_scale)
|
||||
{
|
||||
if(lv_area_get_height(coords) < 1 || lv_area_get_width(coords) < 1) return;
|
||||
if(lv_area_is_on(coords, mask) == false) return;
|
||||
|
||||
#if LV_USE_SHADOW
|
||||
if(style->body.shadow.width != 0) {
|
||||
|
@ -527,7 +527,7 @@ static void lv_mbox_close_ready_cb(lv_anim_t * a)
|
||||
|
||||
static void lv_mbox_default_event_cb(lv_obj_t * mbox, lv_event_t event)
|
||||
{
|
||||
if(event != LV_EVENT_CLICKED) return;
|
||||
if(event != LV_EVENT_SELECTED) return;
|
||||
|
||||
uint16_t btn_id = lv_mbox_get_active_btn(mbox);
|
||||
if(btn_id == LV_BTNM_BTN_NONE) return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user