From 1245d3ba9c510b38c6026b999f309b75298ab3d0 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 27 Aug 2020 23:28:35 +0200 Subject: Added little keyboard demo and stuff --- apps/wm.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/wm.c') diff --git a/apps/wm.c b/apps/wm.c index 421971b..c45a30c 100644 --- a/apps/wm.c +++ b/apps/wm.c @@ -54,6 +54,8 @@ int main(int argc, char **argv) vbe = (struct vbe *)argv[1]; printf("VBE: %dx%d\n", vbe->width, vbe->height); + gui_init("/font/spleen-16x32.psfu"); + windows = list_new(); root = new_window(0, 0, vbe->width, vbe->height); exchange = new_window(0, 0, vbe->width, vbe->height); @@ -63,6 +65,9 @@ int main(int argc, char **argv) direct->fb = vbe->fb; list_add(windows, root); + gui_write(direct, 0, 0, FG_COLOR, "Welcome to Melvix!"); + gui_write(direct, 0, 32, FG_COLOR, "Loading resources..."); + gui_fill(root, BG_COLOR); gui_border(root, FG_COLOR, 2); gui_load_image(cursor, "/res/cursor.bmp", 0, 0); -- cgit v1.2.3