aboutsummaryrefslogtreecommitdiff
path: root/apps/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/window.c')
-rw-r--r--apps/window.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/apps/window.c b/apps/window.c
index 03a384d..08c4263 100644
--- a/apps/window.c
+++ b/apps/window.c
@@ -6,17 +6,8 @@
int main(void)
{
- struct gui_window win = { 0 };
- assert(gui_new_window(&win) > 0);
- 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,
- 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);
- /* while (1) */
- /* ; */
+ u32 win;
+ assert((win = gui_new_window()) > 0);
+ gui_loop();
return 0;
}