fix(examples) use type-safe function for retrieving event param

Fixes #3364
This commit is contained in:
embeddedt
2022-05-18 13:58:35 -04:00
parent 276f28a8a2
commit 71d535defd
3 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
static void draw_part_event_cb(lv_event_t * e)
{
lv_obj_t * obj = lv_event_get_target(e);
lv_obj_draw_part_dsc_t * dsc = lv_event_get_param(e);
lv_obj_draw_part_dsc_t * dsc = lv_event_get_draw_part_dsc(e);
/*If the cells are drawn...*/
if(dsc->part == LV_PART_ITEMS) {
uint32_t row = dsc->id / lv_table_get_col_cnt(obj);