Merge pull request #8 from svnpenn/master

commandlineutils.cpp: correct rows and columns
experiment/srcref_basic_cfg
Martchus 5 years ago committed by GitHub
commit e459dca98d
  1. 4
      application/commandlineutils.cpp

@ -53,10 +53,10 @@ TerminalSize determineTerminalSize()
if (const HANDLE stdHandle = GetStdHandle(STD_OUTPUT_HANDLE)) {
GetConsoleScreenBufferInfo(stdHandle, &consoleBufferInfo);
if (consoleBufferInfo.dwSize.X > 0) {
size.rows = static_cast<unsigned short>(consoleBufferInfo.dwSize.X);
size.columns = static_cast<unsigned short>(consoleBufferInfo.dwSize.X);
}
if (consoleBufferInfo.dwSize.Y > 0) {
size.columns = static_cast<unsigned short>(consoleBufferInfo.dwSize.Y);
size.rows = static_cast<unsigned short>(consoleBufferInfo.dwSize.Y);
}
}
#endif

Loading…
Cancel
Save