diff options
author | Marvin Borner | 2020-08-16 15:35:43 +0200 |
---|---|---|
committer | Marvin Borner | 2020-08-16 15:35:43 +0200 |
commit | 36e36fae364dec02999f58edbe997780d901b674 (patch) | |
tree | 8b06909e475ef84201ca2ef9375880249b1d5e68 /apps/wm.c | |
parent | c4a0bc2571162ad83fc51eb823f1c535336041bf (diff) |
Added WM and exec parameters
Diffstat (limited to 'apps/wm.c')
-rw-r--r-- | apps/wm.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/apps/wm.c b/apps/wm.c new file mode 100644 index 0000000..b9cae91 --- /dev/null +++ b/apps/wm.c @@ -0,0 +1,26 @@ +// MIT License, Copyright (c) 2020 Marvin Borner + +#include <cpu.h> +#include <def.h> +#include <gui.h> +#include <print.h> +#include <sys.h> +#include <vesa.h> + +void main(char **argv) +{ + struct vbe *vbe = (struct vbe *)argv[0]; + + print("WM loaded.\n"); + printf("VBE: %dx%d\n", vbe->width, vbe->height); + + const u32 color[3] = { 0xff, 0xff, 0 }; + const u32 text[3] = { 0, 0, 0 }; + vesa_fill(vbe, color); + gui_init("/font/spleen-16x32.psfu"); + gui_write(vbe, 50, 50, text, "hallo"); + + while (1) { + }; + exit(); +} |