aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/libgui/init.c
blob: 7cd1fc33dd91023db44b434e1aa56aeea0307667 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <stdint.h>
#include <syscall.h>
#include <gui.h>

struct pointers *pointers;

u32 terminal_color[3] = { 0xab, 0xb2, 0xbf };
u32 terminal_background[3] = { 0x1d, 0x1f, 0x24 };

void gui_init()
{
	pointers = syscall_pointers();

	return; // TODO: Fix GUI page fault
	vbe_width = pointers->mode_info->width;
	vbe_height = pointers->mode_info->height;
	vbe_pitch = pointers->mode_info->pitch;
	vbe_bpl = pointers->mode_info->bpp >> 3;
	fb = pointers->mode_info->framebuffer;

	gui_screen_clear();
}