Skip to content
Snippets Groups Projects
Commit 6d57491f authored by Claudio Hoffmann's avatar Claudio Hoffmann
Browse files

Platform_Win32Console: Remove some more dead code :see_no_evil:

parent c5f1a0a3
No related branches found
No related tags found
No related merge requests found
...@@ -107,13 +107,6 @@ std::unordered_set<char> Platform_Win32Console::get_input(void) ...@@ -107,13 +107,6 @@ std::unordered_set<char> Platform_Win32Console::get_input(void)
return ret; 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) void Platform_Win32Console::render(PixelBuffer const &buffer)
{ {
if(buffer.h() & 0x1) { if(buffer.h() & 0x1) {
...@@ -125,8 +118,8 @@ void Platform_Win32Console::render(PixelBuffer const &buffer) ...@@ -125,8 +118,8 @@ void Platform_Win32Console::render(PixelBuffer const &buffer)
}; };
auto con_buffer_size = (con_area.X * con_area.Y); auto con_buffer_size = (con_area.X * con_area.Y);
// Keep the last two screens rendered, so that we're able to only render // Additonally keep the buffer from the previous frame, so that we're able
// the differences. // to only render the differences.
static std::array<std::vector<CHAR_INFO>, 2> chars; static std::array<std::vector<CHAR_INFO>, 2> chars;
static bool page = true; static bool page = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment