diff --git a/Platform_Win32Console.cpp b/Platform_Win32Console.cpp index ef052637629cdc0db657a5b91abf9c1070691ff9..df51542d6efd89215cd86ad3eca1dba323bccc54 100644 --- a/Platform_Win32Console.cpp +++ b/Platform_Win32Console.cpp @@ -107,13 +107,6 @@ std::unordered_set<char> Platform_Win32Console::get_input(void) return ret; } -// Since CHAR_INFO is a `union`, we don't get an automatic implementation of -// std::equal_to. -bool CHAR_INFO_equal(CHAR_INFO const &a, CHAR_INFO const &b) -{ - return (a.Attributes == b.Attributes); -} - void Platform_Win32Console::render(PixelBuffer const &buffer) { if(buffer.h() & 0x1) { @@ -125,8 +118,8 @@ void Platform_Win32Console::render(PixelBuffer const &buffer) }; auto con_buffer_size = (con_area.X * con_area.Y); - // Keep the last two screens rendered, so that we're able to only render - // the differences. + // Additonally keep the buffer from the previous frame, so that we're able + // to only render the differences. static std::array<std::vector<CHAR_INFO>, 2> chars; static bool page = true;