Skip to content

Commit

Permalink
make it work with LVGL v9 (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor authored Jan 9, 2024
2 parents 5c7887c + 8d5f62a commit 968adde
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/writers/lvgl/lv_table_head.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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
};
Expand Down

0 comments on commit 968adde

Please sign in to comment.