From afd07f4bc007ddf4a9e036cd9f4c2db800719653 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 4 Sep 2024 20:21:55 +0200 Subject: support for unknown character in eve font --- fw/fe310/eos/eve/eve_font.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fw/fe310/eos/eve/eve_font.h') diff --git a/fw/fe310/eos/eve/eve_font.h b/fw/fe310/eos/eve/eve_font.h index c098519..c384877 100644 --- a/fw/fe310/eos/eve/eve_font.h +++ b/fw/fe310/eos/eve/eve_font.h @@ -10,7 +10,7 @@ typedef struct EVEFont { } EVEFont; void eve_font_init(EVEFont *font, uint8_t font_id); -uint8_t eve_font_ch_w(EVEFont *font, ucp_t ch); -uint16_t eve_font_str_w(EVEFont *font, utf8_t *str); -uint16_t eve_font_buf_w(EVEFont *font, utf8_t *buf, uint16_t buf_len); +int eve_font_ch_w(EVEFont *font, ucp_t ch); +int eve_font_str_w(EVEFont *font, utf8_t *str, int *str_w, size_t *str_len); +int eve_font_buf_w(EVEFont *font, utf8_t *buf, size_t buf_len, int *str_w, size_t *str_len); uint8_t eve_font_h(EVEFont *font); -- cgit v1.2.3