summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/eve/widget/textw.c
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/eos/eve/widget/textw.c')
-rw-r--r--fw/fe310/eos/eve/widget/textw.c3
1 files changed, 3 insertions, 0 deletions
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) {