summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/eve/screen
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2021-05-10 16:45:27 +0200
committerUros Majstorovic <majstor@majstor.org>2021-05-10 16:45:27 +0200
commit91ff7f239fc60052f141d8ca98751c610b6b18db (patch)
treeb2d8a88d82281bb275a6df99d5944b630fd0023c /fw/fe310/eos/eve/screen
parent3d5500b437c706819075c0f91cbcd981bd5a153a (diff)
added support for eve cmd loadimage and similar
Diffstat (limited to 'fw/fe310/eos/eve/screen')
-rw-r--r--fw/fe310/eos/eve/screen/page.c1
-rw-r--r--fw/fe310/eos/eve/screen/window.c10
2 files changed, 7 insertions, 4 deletions
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<tagN; i++) {
diff --git a/fw/fe310/eos/eve/screen/window.c b/fw/fe310/eos/eve/screen/window.c
index 63a59a9..d4b15f0 100644
--- a/fw/fe310/eos/eve/screen/window.c
+++ b/fw/fe310/eos/eve/screen/window.c
@@ -214,19 +214,23 @@ int eve_window_touch(EVEWindow *window, EVETouch *touch, uint16_t evt, uint8_t t
return 0;
}
+#include <stdio.h>
+
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) {