1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 13:15:07 +00:00

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

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)