From 8d5f62ad572c13bcfede54d3c0c078125c05fca1 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Mon, 8 Jan 2024 14:13:00 +0100 Subject: [PATCH] update to LVGL v9 --- lib/writers/lvgl/lv_table_head.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 };