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:
parent
918dfa51a2
commit
093a598c87
Notes:
sideshowbarker
2024-07-17 20:25:21 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/093a598c872 Pull-request: https://github.com/SerenityOS/serenity/pull/12055 Reviewed-by: https://github.com/BertalanD Reviewed-by: https://github.com/alimpfard
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue