Consolidate formating
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user