diff --git a/src/DrawRender.cpp b/src/DrawRender.cpp index 085a3f2..baf886b 100644 --- a/src/DrawRender.cpp +++ b/src/DrawRender.cpp @@ -5,6 +5,8 @@ #include "DrawRender.hpp" #include #include +#include +#include DrawRender::DrawRender(int windowWidth, int windowHeight, vkvm::Color defaultBackgroundColor, vkvm::Color penColor, int penWidth) : backgroundColor(defaultBackgroundColor), penColor(penColor) { @@ -125,11 +127,7 @@ void DrawRender::translateToSharedMemory(std::vector> shape, i currentY++; } - // a violent way to delay redraw - for(y = 900; y < 1000; y++) { - for(x = 900; x < 1000; x++) - vkvm::setPixel(y, x, vkvm::Color(217,217,217)); - } + std::this_thread::sleep_for(std::chrono::milliseconds(100)); } void DrawRender::clearToSharedMemory(std::vector> shape, int startX, int startY) { diff --git a/src/DrawRender.hpp b/src/DrawRender.hpp index 4f1697a..724b030 100644 --- a/src/DrawRender.hpp +++ b/src/DrawRender.hpp @@ -8,7 +8,6 @@ #include #include #include -#include "Font.h" #include "vector" #include "utils.hpp" #include