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/textw.c | |
parent | 94737f31525be08dac6c2dc2bff4fd69e4a81362 (diff) |
fixed textw update
Diffstat (limited to 'fw/fe310/eos/eve/widget/textw.c')
-rw-r--r-- | fw/fe310/eos/eve/widget/textw.c | 3 |
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) { |