Skip to content
Snippets Groups Projects
Commit 3fdd1f7e authored by y2-shaffan's avatar y2-shaffan
Browse files

Update file kernel.c

parent 8ca86f82
Branches
No related tags found
No related merge requests found
...@@ -91,8 +91,8 @@ void terminal_putentryat(char c, uint8_t color, size_t x, size_t y) { ...@@ -91,8 +91,8 @@ void terminal_putentryat(char c, uint8_t color, size_t x, size_t y) {
for (size_t x = 0; x < VGA_WIDTH; x++) { for (size_t x = 0; x < VGA_WIDTH; x++) {
terminal_buffer[(VGA_HEIGHT - 1) * VGA_WIDTH + x] = make_vgaentry(' ', color); terminal_buffer[(VGA_HEIGHT - 1) * VGA_WIDTH + x] = make_vgaentry(' ', color);
} }
// Move the cursor to the last row // Move the cursor to the next row
y = VGA_HEIGHT - 1; y = y + 1;
} }
const size_t index = y * VGA_WIDTH + x; const size_t index = y * VGA_WIDTH + x;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment