mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-04-19 12:57:19 +00:00
Fix linux build error
This commit is contained in:
parent
fcd9d60c08
commit
a1aad7c1a2
@ -7,7 +7,7 @@
|
||||
* INCLUDES
|
||||
*********************/
|
||||
#include "lv_freetype.h"
|
||||
#if HASP_USE_FREETYPE
|
||||
#if LV_USE_FREETYPE
|
||||
|
||||
#include "ft2build.h"
|
||||
#include FT_FREETYPE_H
|
||||
|
@ -4,7 +4,7 @@
|
||||
#if HASP_USE_FREETYPE > 0
|
||||
|
||||
#ifndef LV_USE_FREETYPE
|
||||
#define LV_USE_FREETYPE 1
|
||||
#define LV_USE_FREETYPE
|
||||
#endif
|
||||
|
||||
#include "lv_freetype.h"
|
||||
@ -18,7 +18,7 @@ typedef struct
|
||||
uint16_t weight; /* font size */
|
||||
uint16_t style; /* font style */
|
||||
} lv_ft_info_t;
|
||||
#endif
|
||||
#endif // HASP_USE_FREETYPE
|
||||
|
||||
#include "hasp_mem.h"
|
||||
#include "font/hasp_font_loader.h"
|
||||
@ -218,7 +218,9 @@ static lv_font_t* font_add_to_list(const char* payload)
|
||||
// Convert the payload to a font pointer
|
||||
lv_font_t* get_font(const char* payload)
|
||||
{
|
||||
#if HASP_USE_FREETYPE > 0
|
||||
LOG_DEBUG(TAG_FONT, F("FreeType High Watermark %u"), lv_ft_freetype_high_watermark());
|
||||
#endif
|
||||
|
||||
lv_font_t* font = font_find_in_list(payload);
|
||||
if(font) return font;
|
||||
|
Loading…
x
Reference in New Issue
Block a user