From 6d57491f8a5bb3f0188dbe6b6c7b861ce38dc268 Mon Sep 17 00:00:00 2001 From: Claudio Hoffmann <hoffmanncl72341@th-nuernberg.de> Date: Sat, 16 Jan 2021 17:25:23 +0100 Subject: [PATCH] =?UTF-8?q?Platform=5FWin32Console:=20Remove=20some=20more?= =?UTF-8?q?=20dead=20code=20=F0=9F=99=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Platform_Win32Console.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Platform_Win32Console.cpp b/Platform_Win32Console.cpp index ef05263..df51542 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; -- GitLab