From 7e923d2a26deffc6a85fdcc5d76b43cb291a1872 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Fri, 1 Sep 2023 14:09:49 +0200 Subject: [PATCH] demo(benchmark): fix black screen issue --- demos/benchmark/lv_demo_benchmark.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/demos/benchmark/lv_demo_benchmark.c b/demos/benchmark/lv_demo_benchmark.c index 92a6137c0..8e1d66558 100644 --- a/demos/benchmark/lv_demo_benchmark.c +++ b/demos/benchmark/lv_demo_benchmark.c @@ -753,6 +753,8 @@ static void benchmark_init(void) lv_obj_t * scr = lv_scr_act(); lv_obj_remove_style_all(scr); lv_obj_set_style_bg_opa(scr, LV_OPA_COVER, 0); + lv_obj_set_style_bg_color(scr, lv_palette_lighten(LV_PALETTE_GREY, 4), 0); + lv_obj_set_style_text_color(scr, lv_color_black(), 0); title = lv_label_create(scr); lv_obj_set_pos(title, LV_DPI_DEF / 30, LV_DPI_DEF / 30);