Kernel/Graphics: Send correct parameters to text console clear method

Apparently there was a wrong calculation result when we sent parameters
from TextModeConsole::clear_vga_row method - and we should stick to the
x, y mechanism of the clear method instead of doing the same calculation
which made it to happen twice actually.
This commit is contained in:
Liav A 2022-01-21 21:00:48 +02:00 committed by Linus Groh
parent 918dfa51a2
commit 093a598c87
Notes: sideshowbarker 2024-07-17 20:25:21 +09:00

View file

@ -155,7 +155,7 @@ void TextModeConsole::write(size_t x, size_t y, char ch, Color background, Color
void TextModeConsole::clear_vga_row(u16 row)
{
clear(row * width(), width(), width());
clear(0, row, width());
}
void TextModeConsole::write(char ch, bool critical)