From fc3b3d5c964d60c2088b892c50f2af5b40fce420 Mon Sep 17 00:00:00 2001 From: fallstool Date: Wed, 19 Sep 2018 16:28:23 +0800 Subject: [PATCH 1/3] Update lv_cb.c fix bug: when out of the range of the checkbox, and press, when move to the checkbox, the checkbox's state will change. --- lv_objx/lv_cb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lv_objx/lv_cb.c b/lv_objx/lv_cb.c index 21befa0f9a..b53eb1bf5d 100644 --- a/lv_objx/lv_cb.c +++ b/lv_objx/lv_cb.c @@ -83,6 +83,7 @@ lv_obj_t * lv_cb_create(lv_obj_t * par, const lv_obj_t * copy) lv_btn_set_layout(new_cb, LV_LAYOUT_ROW_M); lv_btn_set_fit(new_cb, true, true); lv_btn_set_toggle(new_cb, true); + lv_obj_set_protect(new_cb, LV_PROTECT_PRESS_LOST); /*Set the default styles*/ lv_theme_t * th = lv_theme_get_current(); From 71fb5185a453d7ac9e1a96be768fad4b7fa247c7 Mon Sep 17 00:00:00 2001 From: fallstool Date: Wed, 19 Sep 2018 16:31:08 +0800 Subject: [PATCH 2/3] Update lv_cb.c --- lv_objx/lv_cb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lv_objx/lv_cb.c b/lv_objx/lv_cb.c index b53eb1bf5d..09a76f7e1e 100644 --- a/lv_objx/lv_cb.c +++ b/lv_objx/lv_cb.c @@ -83,7 +83,7 @@ lv_obj_t * lv_cb_create(lv_obj_t * par, const lv_obj_t * copy) lv_btn_set_layout(new_cb, LV_LAYOUT_ROW_M); lv_btn_set_fit(new_cb, true, true); lv_btn_set_toggle(new_cb, true); - lv_obj_set_protect(new_cb, LV_PROTECT_PRESS_LOST); + lv_obj_set_protect(new_cb, LV_PROTECT_PRESS_LOST); /*Set the default styles*/ lv_theme_t * th = lv_theme_get_current(); From 6fce22c5556b089e8cdd21ebd67dbdf8d5fee3b8 Mon Sep 17 00:00:00 2001 From: fallstool Date: Wed, 19 Sep 2018 16:32:25 +0800 Subject: [PATCH 3/3] Update lv_cb.c --- lv_objx/lv_cb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lv_objx/lv_cb.c b/lv_objx/lv_cb.c index 09a76f7e1e..d35d2021b7 100644 --- a/lv_objx/lv_cb.c +++ b/lv_objx/lv_cb.c @@ -83,7 +83,7 @@ lv_obj_t * lv_cb_create(lv_obj_t * par, const lv_obj_t * copy) lv_btn_set_layout(new_cb, LV_LAYOUT_ROW_M); lv_btn_set_fit(new_cb, true, true); lv_btn_set_toggle(new_cb, true); - lv_obj_set_protect(new_cb, LV_PROTECT_PRESS_LOST); + lv_obj_set_protect(new_cb, LV_PROTECT_PRESS_LOST); /*Set the default styles*/ lv_theme_t * th = lv_theme_get_current();