summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/eve/widget/selectw.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2024-09-04 20:21:55 +0200
committerUros Majstorovic <majstor@majstor.org>2024-09-04 20:21:55 +0200
commitafd07f4bc007ddf4a9e036cd9f4c2db800719653 (patch)
treeb3c17ff70fb69636bb7279de0392ae5a21ae68f1 /fw/fe310/eos/eve/widget/selectw.c
parent16481ee83d7bde7a28dc8b0d767e0e59d78eb678 (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.c12
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;