Fix the order of variables Cols and Rows

typo
This commit is contained in:
EnderIce2 2024-09-24 01:32:29 +03:00
parent 85b6fdef80
commit 7d7fc4d018
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD
2 changed files with 5 additions and 5 deletions

View File

@ -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);
}

View File

@ -234,7 +234,6 @@ void KShellThread()
printf("%s", strBuf.c_str());
debug("after strBuf: %s", strBuf.c_str());
bsCount--;
continue;
}