Browse Source

fix status line dsplay when scrolling

master
Mathieu Maret 3 years ago
parent
commit
5fe28f3c26
  1. 2
      core/irq_handler.d
  2. BIN
      core/irq_handler.o
  3. 6
      drivers/vga.c
  4. BIN
      drivers/vga.o

2
core/irq_handler.d

@ -1,2 +0,0 @@
core/irq_handler.o: core/irq_handler.c core/interrupt.h core/types.h \
core/io.h core/irq.h drivers/pic.h drivers/vga.h

BIN
core/irq_handler.o

6
drivers/vga.c

@ -81,7 +81,7 @@ void vgaScrollUp(void)
VGA_WIDTH * sizeof(short));
}
for (int i = 0; i < VGA_WIDTH; i++) {
vga[(VGA_HEIGHT - 1) * VGA_WIDTH + i] = colorAttr;
vga[(VGA_HEIGHT - 2) * VGA_WIDTH + i] = colorAttr;
}
}
@ -97,7 +97,7 @@ void printChar(const char str)
if (str == '\n') {
line++;
col = 0;
if (line >= VGA_HEIGHT) {
if (line >= VGA_HEIGHT - 1) {
vgaScrollUp();
line--;
}
@ -122,7 +122,7 @@ void printChar(const char str)
col = 0;
line++;
}
if (line >= VGA_HEIGHT) {
if (line >= VGA_HEIGHT - 1) {
vgaScrollUp();
line--;
}

BIN
drivers/vga.o

Loading…
Cancel
Save