diff options
author | Marvin Borner | 2021-03-21 00:13:13 +0100 |
---|---|---|
committer | Marvin Borner | 2021-03-21 00:13:13 +0100 |
commit | 68a0ad7f21ba07b93cd63613996e27afd8780f9c (patch) | |
tree | 1fb7ff055743737ab5903d81507ea4732e45e095 /apps/window.c | |
parent | 535018ae7247ede06606e4d8aced2d12c761f28f (diff) |
Added basic shared memory support
This will be improved soon. It's very insecure right now.
Diffstat (limited to 'apps/window.c')
-rw-r--r-- | apps/window.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/apps/window.c b/apps/window.c index 0f9e7d1..03a384d 100644 --- a/apps/window.c +++ b/apps/window.c @@ -8,16 +8,15 @@ int main(void) { struct gui_window win = { 0 }; assert(gui_new_window(&win) > 0); - return 0; -#if 0 - gfx_fill(win.ctx, COLOR_GREEN); + gfx_fill(&win.ctx, COLOR_GREEN); // Professional testing for (int i = 0; i < 12; i++) { - gfx_write(win.ctx, vec2(0, i * gfx_font_height(FONT_32)), FONT_32, + gfx_write(&win.ctx, vec2(0, i * gfx_font_height(FONT_32)), FONT_32, 0xff000000 + (i * 0xaf << i), "Hallo, wie geht es Ihnen denn heute?!"); } assert(gui_redraw_window(win.id) > 0); - log("%d\n", win.ctx->size.x); -#endif + log("%d\n", win.ctx.size.x); + /* while (1) */ + /* ; */ return 0; } |