From f454f5238c0af89dcadfc572478dcd96efc74d98 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Thu, 12 Sep 2024 15:41:51 +0200 Subject: fixed textw update --- fw/fe310/eos/eve/widget/strw.c | 1 + fw/fe310/eos/eve/widget/textw.c | 3 +++ 2 files changed, 4 insertions(+) (limited to 'fw/fe310/eos/eve/widget') diff --git a/fw/fe310/eos/eve/widget/strw.c b/fw/fe310/eos/eve/widget/strw.c index 1b2e131..6a2692b 100644 --- a/fw/fe310/eos/eve/widget/strw.c +++ b/fw/fe310/eos/eve/widget/strw.c @@ -61,6 +61,7 @@ int eve_strw_update(EVEStrWidget *widget) { widget->str_len = str_len; widget->str_g.w = str_w; + return EVE_OK; } diff --git a/fw/fe310/eos/eve/widget/textw.c b/fw/fe310/eos/eve/widget/textw.c index 86343a5..7998e75 100644 --- a/fw/fe310/eos/eve/widget/textw.c +++ b/fw/fe310/eos/eve/widget/textw.c @@ -64,8 +64,11 @@ int eve_textw_update(EVETextWidget *widget) { rv = eve_font_verify(widget->font, widget->text, NULL, &text_len); if (rv) widget->text[text_len] = '\0'; + widget->text_len = text_len; memset(widget->line, 0xff, widget->line_size * sizeof(uint16_t)); eve_textw_text_update(widget, 0, 0); + + return EVE_OK; } int eve_textw_create(EVEWidget *_widget, EVEWidgetSpec *spec, EVEPage *page) { -- cgit v1.2.3