fix(demos): fix demos compiling error caused by font config (#4778)

Signed-off-by: YanXiaowei <yanxiaowei@xiaomi.com>
Co-authored-by: YanXiaowei <yanxiaowei@xiaomi.com>
This commit is contained in:
bjsylvia
2023-11-10 22:45:12 +08:00
committed by GitHub
parent cc6581ae03
commit 29c1d94c60
3 changed files with 19 additions and 0 deletions

View File

@@ -9,6 +9,15 @@
#include "lv_demo_benchmark.h"
#if LV_USE_DEMO_BENCHMARK
#if LV_FONT_MONTSERRAT_14 == 0
#error "LV_FONT_MONTSERRAT_14 is required for lv_demo_benchmark. Enable it in lv_conf.h."
#endif
#if LV_FONT_MONTSERRAT_24 == 0
#error "LV_FONT_MONTSERRAT_24 is required for lv_demo_benchmark. Enable it in lv_conf.h."
#endif
#include "../../src/display/lv_display_private.h"
#include "../../src/core/lv_global.h"

View File

@@ -10,6 +10,10 @@
#if LV_USE_DEMO_TRANSFORM
#if LV_FONT_MONTSERRAT_18 == 0
#error "LV_FONT_MONTSERRAT_18 is required for lv_demo_transform. Enable it in lv_conf.h."
#endif
/*********************
* DEFINES
*********************/