Skip to content

Commit

Permalink
fix: support lvgl v9 (lvgl#81)
Browse files Browse the repository at this point in the history
fix: support  lvgl v9
  • Loading branch information
kisvegabor authored Jul 18, 2022
2 parents bd324dc + 4dcf501 commit 4955966
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/writers/lvgl/lv_table_head.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class LvHead extends Head {
* ALL CUSTOM DATA
*--------------------*/
#if LV_VERSION_CHECK(8, 0, 0)
#if LVGL_VERSION_MAJOR >= 8
/*Store all the custom data of the font*/
static lv_font_fmt_txt_glyph_cache_t cache;
static const lv_font_fmt_txt_dsc_t font_dsc = {
Expand All @@ -62,7 +62,7 @@ static lv_font_fmt_txt_dsc_t font_dsc = {
.bpp = ${f.opts.bpp},
.kern_classes = ${kern.classes},
.bitmap_format = ${f.glyf.getCompressionCode()},
#if LV_VERSION_CHECK(8, 0, 0)
#if LVGL_VERSION_MAJOR >= 8
.cache = &cache
#endif
};
Expand All @@ -73,7 +73,7 @@ static lv_font_fmt_txt_dsc_t font_dsc = {
*----------------*/
/*Initialize a public general font descriptor*/
#if LV_VERSION_CHECK(8, 0, 0)
#if LVGL_VERSION_MAJOR >= 8
const lv_font_t ${f.font_name} = {
#else
lv_font_t ${f.font_name} = {
Expand Down

0 comments on commit 4955966

Please sign in to comment.