From 91ff7f239fc60052f141d8ca98751c610b6b18db Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Mon, 10 May 2021 16:45:27 +0200 Subject: added support for eve cmd loadimage and similar --- fw/fe310/eos/eve/screen/page.c | 1 - fw/fe310/eos/eve/screen/window.c | 10 +++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'fw/fe310/eos/eve/screen') diff --git a/fw/fe310/eos/eve/screen/page.c b/fw/fe310/eos/eve/screen/page.c index 61af288..65dd534 100644 --- a/fw/fe310/eos/eve/screen/page.c +++ b/fw/fe310/eos/eve/screen/page.c @@ -307,7 +307,6 @@ uint8_t eve_page_draw(EVEView *view, uint8_t tag0) { } widget = eve_widget_next(widget); } - eve_cmd_dl(RESTORE_CONTEXT()); for (i=tag0; i + void eve_window_root_draw(EVEWindowRoot *root) { uint8_t tag0 = 0x80; + int rv; eve_cmd_burst_start(); - eve_cmd_dl(CMD_DLSTART); + eve_cmd_dl(CMD_DLSTART); if (root->tag0 != EVE_NOTAG) tag0 = EVE_NOTAG; eve_window_draw(&root->w, tag0); eve_cmd_dl(DISPLAY()); - eve_cmd_dl(CMD_SWAP); + eve_cmd_dl(CMD_SWAP); eve_cmd_burst_end(); - eve_cmd_exec(1); + rv = eve_cmd_exec(1); + if (rv) printf("EVE EXEC ERR\n"); } void eve_window_root_touch(EVETouch *touch, uint16_t evt, uint8_t tag0, void *win) { -- cgit v1.2.3