From beb014a6b4a3f7ffa6c9211af450ae5f01d9faef Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Mon, 23 Aug 2021 22:00:19 +0200 Subject: [PATCH] Fixed minor bug --- drivers/vga.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/vga.c b/drivers/vga.c index e215b7f..c53692b 100644 --- a/drivers/vga.c +++ b/drivers/vga.c @@ -14,8 +14,8 @@ static unsigned int cursor_col = 0; void vga_init() { // Disable cursor - port_outb(0x0a, 0x3d4); - port_outb(0x20, 0x3d5); + port_outb(0x3d4, 0x0a); + port_outb(0x3d5, 0x20); // Clear screen clear_screen(); @@ -43,6 +43,7 @@ void set_cursor_pos(unsigned int col, unsigned int row) { cursor_row = row; } + /* Graphics Functions */