diff --git a/lib/writers/lvgl/lv_table_head.js b/lib/writers/lvgl/lv_table_head.js index b7424da..3c68d13 100644 --- a/lib/writers/lvgl/lv_table_head.js +++ b/lib/writers/lvgl/lv_table_head.js @@ -46,9 +46,12 @@ class LvHead extends Head { * ALL CUSTOM DATA *--------------------*/ -#if LVGL_VERSION_MAJOR >= 8 +#if LVGL_VERSION_MAJOR == 8 /*Store all the custom data of the font*/ static lv_font_fmt_txt_glyph_cache_t cache; +#endif + +#if LVGL_VERSION_MAJOR >= 8 static const lv_font_fmt_txt_dsc_t font_dsc = { #else static lv_font_fmt_txt_dsc_t font_dsc = { @@ -62,7 +65,7 @@ static lv_font_fmt_txt_dsc_t font_dsc = { .bpp = ${f.opts.bpp}, .kern_classes = ${kern.classes}, .bitmap_format = ${f.glyf.getCompressionCode()}, -#if LVGL_VERSION_MAJOR >= 8 +#if LVGL_VERSION_MAJOR == 8 .cache = &cache #endif };