fix status line dsplay when scrolling
This commit is contained in:
parent
2352c67b7a
commit
5fe28f3c26
@ -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
|
|
Binary file not shown.
@ -81,7 +81,7 @@ void vgaScrollUp(void)
|
|||||||
VGA_WIDTH * sizeof(short));
|
VGA_WIDTH * sizeof(short));
|
||||||
}
|
}
|
||||||
for (int i = 0; i < VGA_WIDTH; i++) {
|
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') {
|
if (str == '\n') {
|
||||||
line++;
|
line++;
|
||||||
col = 0;
|
col = 0;
|
||||||
if (line >= VGA_HEIGHT) {
|
if (line >= VGA_HEIGHT - 1) {
|
||||||
vgaScrollUp();
|
vgaScrollUp();
|
||||||
line--;
|
line--;
|
||||||
}
|
}
|
||||||
@ -122,7 +122,7 @@ void printChar(const char str)
|
|||||||
col = 0;
|
col = 0;
|
||||||
line++;
|
line++;
|
||||||
}
|
}
|
||||||
if (line >= VGA_HEIGHT) {
|
if (line >= VGA_HEIGHT - 1) {
|
||||||
vgaScrollUp();
|
vgaScrollUp();
|
||||||
line--;
|
line--;
|
||||||
}
|
}
|
||||||
|
BIN
drivers/vga.o
BIN
drivers/vga.o
Binary file not shown.
Loading…
Reference in New Issue
Block a user