From 093a598c8721ecaaeac6d4686a01a1d8b5a8caf6 Mon Sep 17 00:00:00 2001 From: Liav A Date: Fri, 21 Jan 2022 21:00:48 +0200 Subject: [PATCH] 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. --- Kernel/Graphics/Console/TextModeConsole.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Graphics/Console/TextModeConsole.cpp b/Kernel/Graphics/Console/TextModeConsole.cpp index 3a5025db16..23cc9792e5 100644 --- a/Kernel/Graphics/Console/TextModeConsole.cpp +++ b/Kernel/Graphics/Console/TextModeConsole.cpp @@ -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)