diff options
author | Uros Majstorovic <majstor@majstor.org> | 2024-09-04 20:21:55 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2024-09-04 20:21:55 +0200 |
commit | afd07f4bc007ddf4a9e036cd9f4c2db800719653 (patch) | |
tree | b3c17ff70fb69636bb7279de0392ae5a21ae68f1 /fw/fe310/eos/eve/widget/selectw.c | |
parent | 16481ee83d7bde7a28dc8b0d767e0e59d78eb678 (diff) |
support for unknown character in eve font
Diffstat (limited to 'fw/fe310/eos/eve/widget/selectw.c')
-rw-r--r-- | fw/fe310/eos/eve/widget/selectw.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fw/fe310/eos/eve/widget/selectw.c b/fw/fe310/eos/eve/widget/selectw.c index b11f9b6..f0dfed9 100644 --- a/fw/fe310/eos/eve/widget/selectw.c +++ b/fw/fe310/eos/eve/widget/selectw.c @@ -75,6 +75,18 @@ void eve_selectw_init(EVESelectWidget *widget, EVERect *g, EVEPage *page, EVEFon widget->select = widget->multi ? 0 : SELECTW_NOSELECT; } +int eve_selectw_update(EVESelectWidget *widget) { + int rv, i; + + rv = selectw_verify(widget->option, widget->option_size); + if (rv) return rv; + + widget->option_count = selectw_count(widget); + selectw_update_sz(widget, 1); + + return EVE_OK; +} + int eve_selectw_create(EVEWidget *_widget, EVEWidgetSpec *spec, EVEPage *page) { EVESelectWidget *widget = (EVESelectWidget *)_widget; EVESelectSpec *tspec = &spec->tspec.select; |