Consolidate formating

This commit is contained in:
2022-01-17 00:38:43 +01:00
parent 121858ee31
commit f9b7390923
29 changed files with 139 additions and 354 deletions

View File

@@ -15,16 +15,14 @@ static void *vidmem;
static int setup = 0;
void vga_init(struct fbinfo *fbinfo)
{
void vga_init(struct fbinfo *fbinfo) {
(void) fbinfo;
vidmem = VGA_MEMORY;
memset(vidmem, 0, VGA_SIZE*sizeof(struct vga_cell));
setup = 1;
}
void vga_movecursor(unsigned int cursor)
{
void vga_movecursor(unsigned int cursor) {
if(!setup) return;
outb(VGA_ADDRESS_PORT, VGA_REGISTER_CURSOR_POS_LOW);
outb(VGA_DATA_PORT, (uint8_t)(cursor & 0xFF));
@@ -32,8 +30,7 @@ void vga_movecursor(unsigned int cursor)
outb(VGA_DATA_PORT, (uint8_t)((cursor >> 8) & 0xFF));
}
void vga_flush(struct vga_cell *buffer)
{
void vga_flush(struct vga_cell *buffer) {
if(!setup) return;
memcpy(vidmem, buffer, VGA_SIZE*2);
}