From b54549cae4ee70e5349e0e588bbd535dcac40517 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Mon, 18 Dec 2023 13:21:25 +0100 Subject: [PATCH] chore(demo_benchmark): make the table widget local fixes #5025 --- demos/benchmark/lv_demo_benchmark.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/demos/benchmark/lv_demo_benchmark.c b/demos/benchmark/lv_demo_benchmark.c index 2977b0ce5..4304b6b4d 100644 --- a/demos/benchmark/lv_demo_benchmark.c +++ b/demos/benchmark/lv_demo_benchmark.c @@ -529,13 +529,12 @@ static void table_draw_task_event_cb(lv_event_t * e) } -lv_obj_t * table; static void summary_create(void) { lv_obj_clean(lv_screen_active()); lv_obj_set_style_pad_hor(lv_screen_active(), 0, 0); - table = lv_table_create(lv_screen_active()); + lv_obj_t * table = lv_table_create(lv_screen_active()); lv_obj_set_width(table, lv_pct(100)); lv_obj_set_style_max_height(table, lv_pct(100), 0); lv_obj_add_flag(table, LV_OBJ_FLAG_SEND_DRAW_TASK_EVENTS);