From b2b9b1b8476e01c5bc45d2ac77e989ce4c391ae8 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Thu, 11 Jan 2024 17:15:44 +0100 Subject: src/vga.c: fix text corruption by clearing lines properly Signed-off-by: Anna (navi) Figueiredo Gomes --- src/vga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vga.c') diff --git a/src/vga.c b/src/vga.c index 150af9b..dcfb737 100644 --- a/src/vga.c +++ b/src/vga.c @@ -26,7 +26,7 @@ void vga_scroll() { } } vga_y = VGA_HEIGHT - 1; - for (size_t x = 0; x < VGA_HEIGHT; x++) { + for (size_t x = 0; x < VGA_WIDTH; x++) { vga_buffer[vga_y * VGA_WIDTH + x] = ' ' | (vga_color << 8); } } -- cgit v1.2.3