Skip to content

Commit

Permalink
update to LVGL v9
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor authored Jan 8, 2024
1 parent 5c7887c commit 8d5f62a
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 8d5f62a

Please sign in to comment.