From 0e518d5117b73fd54081decf1c0eb9f9d3173ff6 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 29 Jul 2020 09:21:45 +0200 Subject: unicode support --- code/fe310/eos/eve/widget/strw.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'code/fe310/eos/eve/widget/strw.h') diff --git a/code/fe310/eos/eve/widget/strw.h b/code/fe310/eos/eve/widget/strw.h index 1277c20..72fc6aa 100644 --- a/code/fe310/eos/eve/widget/strw.h +++ b/code/fe310/eos/eve/widget/strw.h @@ -9,7 +9,7 @@ typedef struct EVEStrCursor { typedef struct EVEStrWidget { EVEWidget w; EVEFont *font; - char *str; + utf8_t *str; uint16_t str_size; uint16_t str_len; struct { @@ -27,7 +27,7 @@ typedef struct EVEStrWidget { } track; } EVEStrWidget; -void eve_strw_init(EVEStrWidget *widget, EVERect *g, EVEFont *font, char *str, uint16_t str_size); +void eve_strw_init(EVEStrWidget *widget, EVERect *g, EVEFont *font, utf8_t *str, uint16_t str_size); int eve_strw_touch(EVEWidget *_widget, EVEPage *page, uint8_t tag0, int touch_idx); uint8_t eve_strw_draw(EVEWidget *_widget, EVEPage *page, uint8_t tag0); void eve_strw_putc(void *_page, int c); -- cgit v1.2.3