diff options
Diffstat (limited to 'apps/test.c')
-rw-r--r-- | apps/test.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/apps/test.c b/apps/test.c index 8004b34..b511ab3 100644 --- a/apps/test.c +++ b/apps/test.c @@ -5,7 +5,20 @@ int main() { print("[test loaded]\n"); - gui_new_window(); + printf("TIME: %d\n", time()); + + /* struct window *win = gui_new_window(); */ + msg_send(1, MSG_NEW_WINDOW, NULL); + struct message *msg = msg_receive_loop(); + struct window *win = (struct window *)msg->data; + + // TODO: Fix window transmitting + printf("\nReceived %d from %d\n", win->x, msg->src); + printf("Received %d from %d\n", win->y, msg->src); + printf("Received %d from %d\n", win->width, msg->src); + printf("Received %d from %d\n", win->height, msg->src); + printf("Received %d from %d\n", win->fb, msg->src); + while (1) { }; return 0; |