From 7d7fc4d0181e488a3f006ade1fe421458ef3f06d Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Tue, 24 Sep 2024 01:32:29 +0300 Subject: [PATCH] Fix the order of variables Cols and Rows typo --- core/console.cpp | 9 +++++---- kshell/shell.cpp | 1 - 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/console.cpp b/core/console.cpp index 6d0ef6a8..4c959d05 100644 --- a/core/console.cpp +++ b/core/console.cpp @@ -359,10 +359,11 @@ namespace KernelConsole &_binary_files_tamsyn_font_1_11_Tamsyn7x14r_psf_end, Video::FontType::PCScreenFont2); - size_t Cols = Display->GetWidth / Renderer.CurrentFont->GetInfo().Width; - size_t Rows = Display->GetHeight / Renderer.CurrentFont->GetInfo().Height; - Terminals[0] = new VirtualTerminal(Cols, Rows, Display->GetWidth, Display->GetHeight, paint_callback, cursor_callback); - Terminals[0]->Clear(0, 0, Cols, Rows - 1); + size_t Rows = Display->GetWidth / Renderer.CurrentFont->GetInfo().Width; + size_t Cols = Display->GetHeight / Renderer.CurrentFont->GetInfo().Height; + debug("Terminal size: %ux%u", Rows, Cols); + Terminals[0] = new VirtualTerminal(Rows, Cols, Display->GetWidth, Display->GetHeight, paint_callback, cursor_callback); + Terminals[0]->Clear(0, 0, Rows, Cols - 1); CurrentTerminal.store(Terminals[0], std::memory_order_release); } diff --git a/kshell/shell.cpp b/kshell/shell.cpp index c954669a..77c659e4 100644 --- a/kshell/shell.cpp +++ b/kshell/shell.cpp @@ -234,7 +234,6 @@ void KShellThread() printf("%s", strBuf.c_str()); debug("after strBuf: %s", strBuf.c_str()); - bsCount--; continue; }