16 lines
338 B
C++
16 lines
338 B
C++
#include "display.h"
|
|
|
|
display::display():
|
|
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);
|
|
}
|