diff options
author | Uros Majstorovic <majstor@majstor.org> | 2021-03-27 22:08:31 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2021-03-27 22:08:31 +0100 |
commit | daa87d92b3df433578e53284a8c88083e24f8623 (patch) | |
tree | bb061a88510935f7bb91139ae618caaf9b546c96 /fw/fe310/test/status.c | |
parent | 72a82b58ba87fe9ecc2718bfcb2b5f0432ffaea9 (diff) |
form/app cleanup; scroll infrastructure
Diffstat (limited to 'fw/fe310/test/status.c')
-rw-r--r-- | fw/fe310/test/status.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fw/fe310/test/status.c b/fw/fe310/test/status.c index 4413767..b7307b2 100644 --- a/fw/fe310/test/status.c +++ b/fw/fe310/test/status.c @@ -21,7 +21,6 @@ #include <eve/widget/widgets.h> #include <app/app_root.h> -#include <app/app_form.h> #include "phone.h" #include "status.h" @@ -58,10 +57,9 @@ static int status_touch(EVEView *view, EVETouch *touch, uint16_t evt, uint8_t ta static uint8_t status_draw(EVEView *view, uint8_t tag0) { uint8_t tag_opt = EVE_TOUCH_OPT_TRACK | EVE_TOUCH_OPT_TRACK_XY; - tag0 = eve_view_clear(view, tag0); - if (view->tag != EVE_TAG_NOTAG) eve_touch_set_opt(view->tag, eve_touch_get_opt(view->tag) | tag_opt); + tag0 = eve_view_clear(view, tag0, tag_opt); - if (tag0 != EVE_TAG_NOTAG) { + if (tag0 != EVE_NOTAG) { eve_touch_set_opt(tag0, eve_touch_get_opt(tag0) | tag_opt); eve_cmd_dl(TAG(tag0)); tag0++; @@ -79,7 +77,8 @@ void app_status_msg_set(char *msg, int refresh) { } void app_status_init(void) { - EVEWindow *status = eve_window_search(app_root(), "status"); + EVEWindowRoot *root = app_root(); + EVEWindow *status = eve_window_search(&root->w, "status"); status->view->touch = status_touch; status->view->draw = status_draw; } |