summaryrefslogtreecommitdiff
path: root/code/fe310/eos/eve/screen
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-07-11 14:17:12 +0200
committerUros Majstorovic <majstor@majstor.org>2020-07-11 14:17:12 +0200
commit0ebaa6f7c2ae1cb7e72d8b5ff4b34e3fe7c5ace8 (patch)
tree6a2d103796e183f9847c203a4891ec4bfb1d56dc /code/fe310/eos/eve/screen
parent725ed5b0353eaeb3301aa9690d6803a78e18dfb2 (diff)
page focus interface changed; widget is responsible for setting focus
Diffstat (limited to 'code/fe310/eos/eve/screen')
-rw-r--r--code/fe310/eos/eve/screen/form.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/code/fe310/eos/eve/screen/form.c b/code/fe310/eos/eve/screen/form.c
index 927f889..096cfa3 100644
--- a/code/fe310/eos/eve/screen/form.c
+++ b/code/fe310/eos/eve/screen/form.c
@@ -24,8 +24,7 @@ int eve_form_init(EVEForm *form, EVEWindow *window, EVEWidget *widget, uint16_t
int eve_form_touch(EVEView *v, uint8_t tag0, int touch_idx) {
EVEForm *form = (EVEForm *)v;
EVEWidget *widget = form->widget;
- int i, r, ret = 0;
- EVERect focus = {0,0,0,0};
+ int i, ret = 0;
if (touch_idx == 0) {
EVETouch *t;
@@ -40,9 +39,8 @@ int eve_form_touch(EVEView *v, uint8_t tag0, int touch_idx) {
}
for (i=0; i<form->widget_size; i++) {
if (eve_page_rect_visible(&form->p, &widget->g)) {
- int r = widget->touch(widget, &form->p, tag0, touch_idx, &focus);
+ int r = widget->touch(widget, &form->p, tag0, touch_idx);
ret = ret || r;
- if (focus.w && focus.h) eve_page_set_focus(&form->p, widget, &focus);
}
widget = eve_widget_next(widget);
}