Fix typo, add depedency to cmake config file

This commit is contained in:
Maarten L. Hekkelman
2026-01-28 18:02:56 +01:00
parent 1c8571f02c
commit 56cfa09976
2 changed files with 2 additions and 1 deletions

View File

@@ -8,5 +8,6 @@ include(CMakeFindDependencyMacro)
find_dependency(Threads)
find_dependency(ZLIB REQUIRED)
find_dependency(SQLite3 REQUIRED)
check_required_components(cifpp)

View File

@@ -93,7 +93,7 @@ std::tuple<uint32_t, uint32_t> get_terminal_width_and_height()
{
CONSOLE_SCREEN_BUFFER_INFO csbi;
return ::GetConsoleScreenBufferInfo(::GetStdHandle(STD_OUTPUT_HANDLE), &csbi)
? { csbi.srWindow.Right - csbi.srWindow.Left + 1, csbi.srWindow.Bottm - csbi.srWindow.Top + 1 }
? { csbi.srWindow.Right - csbi.srWindow.Left + 1, csbi.srWindow.Bottom - csbi.srWindow.Top + 1 }
: { 80, 24 };
}