diff options
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 |