fixed: issue with file/console output

This commit is contained in:
2024-07-06 20:39:04 -04:00
parent a4c5220019
commit 1fbd22c101
6 changed files with 13 additions and 14 deletions

View File

@ -1,4 +1,15 @@
#include "display.h"
display::display():
contents{DISPLAY_BUFFER_SIZE, 0} {}
contents{DISPLAY_BUFFER_SIZE, 0} {
for (int i = 0; i < DISPLAY_BUFFER_SIZE; ++i)
contents.push_back(0);
}
void display::clear() {
contents.clear();
contents.reserve(DISPLAY_BUFFER_SIZE);
for (int i = 0; i < DISPLAY_BUFFER_SIZE; ++i)
contents.push_back(0);
}