Split framebuffer functions into library

This commit is contained in:
2022-01-11 00:38:43 +01:00
parent 576a32d92f
commit 6c36d3dd40
11 changed files with 223 additions and 176 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
#include <framebuffer.h>
#include <mittos/graphics.h>
#include <multiboot.h>
#define VGA_COLS 80
#define VGA_ROWS 24
@@ -21,6 +22,7 @@ void vga_movecursor(unsigned int cursor);
void vga_flush(struct vga_cell *buffer);
// drivers/terminal/fbterm.c
void fbterm_init(gfx_context *ctx);
extern gfx_context kernel_fb;
void fbterm_init(struct fbinfo *fbinfo);
void fbterm_movecursor(unsigned int cursor);
void fbterm_flush(struct vga_cell *buffer);