mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-27 15:04:33 +00:00
Fix the order of variables Cols and Rows
typo
This commit is contained in:
parent
85b6fdef80
commit
7d7fc4d018
@ -359,10 +359,11 @@ namespace KernelConsole
|
|||||||
&_binary_files_tamsyn_font_1_11_Tamsyn7x14r_psf_end,
|
&_binary_files_tamsyn_font_1_11_Tamsyn7x14r_psf_end,
|
||||||
Video::FontType::PCScreenFont2);
|
Video::FontType::PCScreenFont2);
|
||||||
|
|
||||||
size_t Cols = Display->GetWidth / Renderer.CurrentFont->GetInfo().Width;
|
size_t Rows = Display->GetWidth / Renderer.CurrentFont->GetInfo().Width;
|
||||||
size_t Rows = Display->GetHeight / Renderer.CurrentFont->GetInfo().Height;
|
size_t Cols = Display->GetHeight / Renderer.CurrentFont->GetInfo().Height;
|
||||||
Terminals[0] = new VirtualTerminal(Cols, Rows, Display->GetWidth, Display->GetHeight, paint_callback, cursor_callback);
|
debug("Terminal size: %ux%u", Rows, Cols);
|
||||||
Terminals[0]->Clear(0, 0, Cols, Rows - 1);
|
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);
|
CurrentTerminal.store(Terminals[0], std::memory_order_release);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -234,7 +234,6 @@ void KShellThread()
|
|||||||
printf("%s", strBuf.c_str());
|
printf("%s", strBuf.c_str());
|
||||||
debug("after strBuf: %s", strBuf.c_str());
|
debug("after strBuf: %s", strBuf.c_str());
|
||||||
|
|
||||||
|
|
||||||
bsCount--;
|
bsCount--;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user