Skip to content

Commit

Permalink
fix main
Browse files Browse the repository at this point in the history
  • Loading branch information
neonman63 authored Oct 11, 2024
1 parent 05fd390 commit 03dce53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ static void hal_init(lv_color_t primary, lv_color_t secondary) {
spdlog::debug("resolution {} x {}", width, height);
lv_disp_t * disp = lv_disp_drv_register(&disp_drv);
lv_theme_t * th = height <= 480
? lv_theme_default_init(NULL, primary, secondary, true, &lv_font_notosans_12)
: lv_theme_default_init(NULL, primary, secondary, true, &lv_font_notosans_20);
? lv_theme_default_init(NULL, primary, secondary, true, &notosans_12)
: lv_theme_default_init(NULL, primary, secondary, true, &notosans_20);
lv_disp_set_theme(disp, th);

evdev_init();
Expand Down Expand Up @@ -142,8 +142,8 @@ static void hal_init(lv_color_t primary, lv_color_t secondary)

lv_disp_t * disp = lv_disp_drv_register(&disp_drv);
lv_theme_t * th = MONITOR_HOR_RES <= 480
? lv_theme_default_init(NULL, primary, secondary, true, &lv_font_notosans_12)
: lv_theme_default_init(NULL, primary, secondary, true, &lv_font_notosans_16);
? lv_theme_default_init(NULL, primary, secondary, true, &notosans_12)
: lv_theme_default_init(NULL, primary, secondary, true, &notosans_16);
lv_disp_set_theme(disp, th);

lv_group_t * g = lv_group_create();
Expand Down

0 comments on commit 03dce53

Please sign in to comment.