From 83560782374bd7ff60415e3720d3e698ddf39015 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Mon, 16 Aug 2021 19:33:53 +0200 Subject: [PATCH] Minor set_cursor_pos bug fix --- src/kernel/kernel.c | 2 +- src/kernel/lib/vga.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c index e5db7da..ce6a1ec 100644 --- a/src/kernel/kernel.c +++ b/src/kernel/kernel.c @@ -6,6 +6,6 @@ void main() { *vidmem = 'X'; clear_screen(); - set_cursor_pos(0, 5); + set_cursor_pos(24, 0); println("\t eOS Version 0.0 2021", 0xf0); } diff --git a/src/kernel/lib/vga.c b/src/kernel/lib/vga.c index 3cbb4ae..e869fe2 100644 --- a/src/kernel/lib/vga.c +++ b/src/kernel/lib/vga.c @@ -43,7 +43,8 @@ void clear_screen() { General Printing Functions */ void set_cursor_pos(unsigned int x, unsigned int y) { - cursor_col, cursor_row = x, y; + cursor_col = x; + cursor_row = y; } void print(char* str, int colorcode) {