fixed output not found

This commit is contained in:
2024-07-15 17:56:45 -04:00
parent 356bfb3b2e
commit 1ebdd2d162
8 changed files with 292 additions and 0 deletions

17
src/output.cc Normal file
View File

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