diff options
author | Marvin Borner | 2020-04-29 13:19:32 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-29 13:19:32 +0200 |
commit | 4f3c75d23188bd480739d6d1514543c95cfe3399 (patch) | |
tree | d7306d1e5496becadee6514e3e50bdfc2e37f3e0 /src/userspace/libgui | |
parent | 50858d043cbd6f61cc091c6772f981ca2d6cca6b (diff) |
Started libgui implementation
Diffstat (limited to 'src/userspace/libgui')
-rw-r--r-- | src/userspace/libgui/gui.h | 22 | ||||
-rw-r--r-- | src/userspace/libgui/init.c | 10 |
2 files changed, 32 insertions, 0 deletions
diff --git a/src/userspace/libgui/gui.h b/src/userspace/libgui/gui.h new file mode 100644 index 0000000..b056dea --- /dev/null +++ b/src/userspace/libgui/gui.h @@ -0,0 +1,22 @@ +#ifndef MELVIX_GUI_H +#define MELVIX_GUI_H + +#include <stdint.h> + +struct font { + u16 font_32[758][32]; + u16 font_24[758][24]; + u8 font_16[758][16]; + u16 cursor[19]; +}; + +struct pointers { + u8 *fb; + struct font *font; +}; + +struct pointers *pointers; + +void gui_init(); + +#endif
\ No newline at end of file diff --git a/src/userspace/libgui/init.c b/src/userspace/libgui/init.c new file mode 100644 index 0000000..dfc42eb --- /dev/null +++ b/src/userspace/libgui/init.c @@ -0,0 +1,10 @@ +#include <stdint.h> +#include <syscall.h> +#include <gui.h> + +struct pointers *pointers; + +void gui_init() +{ + pointers = syscall_pointers(); +}
\ No newline at end of file |