diff options
author | Uros Majstorovic <majstor@majstor.org> | 2021-02-26 17:09:16 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2021-02-26 17:09:16 +0100 |
commit | 5073075e39a1e35ab7408e3d325bf00a8e0a2230 (patch) | |
tree | 232728cd9165f445c692bf386bc029aaab0a6e9b /fw/fe310/eos/eve/screen | |
parent | 85a88a982f4688482da49d4d5d119ba659d4d870 (diff) |
screen will not refresh if nobody claims touch event
Diffstat (limited to 'fw/fe310/eos/eve/screen')
-rw-r--r-- | fw/fe310/eos/eve/screen/screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fw/fe310/eos/eve/screen/screen.c b/fw/fe310/eos/eve/screen/screen.c index fa4a0aa..1099515 100644 --- a/fw/fe310/eos/eve/screen/screen.c +++ b/fw/fe310/eos/eve/screen/screen.c @@ -91,7 +91,7 @@ void eve_screen_draw(EVEScreen *screen) { void eve_screen_handle_touch(void *s, uint8_t tag0, int touch_idx) { EVEScreen *screen = s; EVEWindow *win; - int h; + int h = 0; eve_touch_clear_opt(); @@ -106,5 +106,5 @@ void eve_screen_handle_touch(void *s, uint8_t tag0, int touch_idx) { } } - eve_screen_draw(screen); + if (h) eve_screen_draw(screen); } |