aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/vesa.c
diff options
context:
space:
mode:
authorMarvin Borner2020-07-26 16:18:54 +0200
committerMarvin Borner2020-07-26 16:18:54 +0200
commit5860f8c0d690d430424a7b619558024691c71f69 (patch)
treebfc9dee83ff15da1a2eda39ad312709d22244226 /src/drivers/vesa.c
parentd8410862be2f00bf2ce321bc28b8322f2de944a9 (diff)
Added simple keyboard input.
This is somewhat of a demo. The real gui will be implemented completely different (ig)
Diffstat (limited to 'src/drivers/vesa.c')
-rw-r--r--src/drivers/vesa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/vesa.c b/src/drivers/vesa.c
index 6bafd9e..9402664 100644
--- a/src/drivers/vesa.c
+++ b/src/drivers/vesa.c
@@ -32,6 +32,8 @@ void vesa_fill(const u32 color[3])
void vesa_init(struct vbe *info)
{
vbe = info;
+ vbe_height = vbe->height;
+ vbe_width = vbe->width;
vbe_bpl = vbe->bpp >> 3;
vbe_pitch = vbe->pitch;
fb = (u8 *)vbe->framebuffer;