diff options
author | Uros Majstorovic <majstor@majstor.org> | 2024-09-12 15:41:51 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2024-09-12 15:41:51 +0200 |
commit | f454f5238c0af89dcadfc572478dcd96efc74d98 (patch) | |
tree | 0eb39b5706796de285fc12d7cbbd0d198236a0fb /fw/fe310/eos/eve/widget | |
parent | 94737f31525be08dac6c2dc2bff4fd69e4a81362 (diff) |
fixed textw update
Diffstat (limited to 'fw/fe310/eos/eve/widget')
-rw-r--r-- | fw/fe310/eos/eve/widget/strw.c | 1 | ||||
-rw-r--r-- | fw/fe310/eos/eve/widget/textw.c | 3 |
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) { |