diff --git a/scratchpad/img2ansi.cpp b/scratchpad/img2ansi.cpp index c1d700b..e102557 100644 --- a/scratchpad/img2ansi.cpp +++ b/scratchpad/img2ansi.cpp @@ -125,11 +125,10 @@ int main(int argc, char *argv[]) { SFMLRender renderer; if(renderer.resize_grid(10, panel)) { - println("RESIZED: {},{}", panel.width, panel.height); - // set canvas to best size drawing = Canvas(panel.width * 2, panel.height * 4); } + panel.set_renderer(Renderer([&]{ for(size_t x = 0; x < colors.size(); x++) { for(size_t y = 0; y < colors[0].size(); y++) { @@ -153,7 +152,7 @@ int main(int argc, char *argv[]) { } } - std::this_thread::sleep_for(10ms); + std::this_thread::sleep_for(100ms); } return 0;