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