Skip to content

Commit

Permalink
Merge pull request #446 from gdt050579/445-windows-terminal-remove-lo…
Browse files Browse the repository at this point in the history
…gging-when-the-terminal-does-not-need-to-be-resized

Removed loggin from windows terminal when does not need to be resized
  • Loading branch information
rzaharia committed Mar 20, 2024
2 parents 94868e6 + 505a3e3 commit aa3c500
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion AppCUI/src/Terminal/WindowsTerminal/WindowsTerminal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ WindowsTerminal::~WindowsTerminal()
bool WindowsTerminal::ResizeConsoleBuffer(uint32 width, uint32 height)
{
const uint32 newCount = ((width * height) | 0xFF) + 1;
CHECK(newCount > consoleBufferCount, true, "No need to resize!");
if (newCount <= consoleBufferCount)
return true;

consoleBuffer.reset(new CHAR_INFO[newCount]);
CHECK(consoleBuffer.get(),
Expand Down

0 comments on commit aa3c500

Please sign in to comment.