aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/buttonmatrix/lv_buttonmatrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/buttonmatrix/lv_buttonmatrix.c')
-rw-r--r--src/widgets/buttonmatrix/lv_buttonmatrix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/buttonmatrix/lv_buttonmatrix.c b/src/widgets/buttonmatrix/lv_buttonmatrix.c
index 904ffbb6d..291d69a78 100644
--- a/src/widgets/buttonmatrix/lv_buttonmatrix.c
+++ b/src/widgets/buttonmatrix/lv_buttonmatrix.c
@@ -399,7 +399,7 @@ static void lv_buttonmatrix_event(const lv_obj_class_t * class_p, lv_event_t * e
if(res != LV_RESULT_OK) return;
lv_event_code_t code = lv_event_get_code(e);
- lv_obj_t * obj = lv_event_get_target(e);
+ lv_obj_t * obj = lv_event_get_current_target(e);
lv_buttonmatrix_t * btnm = (lv_buttonmatrix_t *)obj;
lv_point_t p;
@@ -661,7 +661,7 @@ static void lv_buttonmatrix_event(const lv_obj_class_t * class_p, lv_event_t * e
static void draw_main(lv_event_t * e)
{
- lv_obj_t * obj = lv_event_get_target(e);
+ lv_obj_t * obj = lv_event_get_current_target(e);
lv_buttonmatrix_t * btnm = (lv_buttonmatrix_t *)obj;
if(btnm->btn_cnt == 0) return;