diff --git a/src/main.cpp b/src/main.cpp index 7d19cc1..ff11556 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -257,8 +257,10 @@ static void hal_init(void) { } lv_disp_drv_register(&disp_drv); + spdlog::debug("resolution {} x {}", width, height); + lv_disp_t * disp = lv_disp_drv_register(&disp_drv); - lv_theme_t * th = width <= 480 + lv_theme_t * th = height <= 480 ? lv_theme_default_init(NULL, lv_palette_main(LV_PALETTE_BLUE), lv_palette_main(LV_PALETTE_RED), true, &lv_font_montserrat_12) : lv_theme_default_init(NULL, lv_palette_main(LV_PALETTE_BLUE), lv_palette_main(LV_PALETTE_RED), true, &lv_font_montserrat_16); lv_disp_set_theme(disp, th);