From 074690c23e6d32760c326ed0e4de531991b3f9ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20F=C3=BCrst?= Date: Wed, 1 May 2024 15:50:09 +0200 Subject: [PATCH 1/2] add screen refresh --- main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/main.cpp b/main.cpp index a64e3b4..9d7b665 100755 --- a/main.cpp +++ b/main.cpp @@ -11,6 +11,7 @@ void mainL01() { Point p(10,10,'X'); p.print(); + Graphics::get().refreshScreen(); std::this_thread::sleep_for(std::chrono::seconds(10)); Graphics::get().finalize(); From d4bf1dc9a92533dde15e613a082953a292f16736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20F=C3=BCrst?= Date: Wed, 1 May 2024 15:51:14 +0200 Subject: [PATCH 2/2] add screen refresh --- components/Snack.h | 1 + main.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/components/Snack.h b/components/Snack.h index c249720..86af25d 100644 --- a/components/Snack.h +++ b/components/Snack.h @@ -1,4 +1,5 @@ #pragma once + #include "Point.h" static constexpr int SNACK_CHAR = '*'; diff --git a/main.cpp b/main.cpp index 0c393b1..b9b8215 100755 --- a/main.cpp +++ b/main.cpp @@ -26,6 +26,7 @@ void mainL02() { Point p(10,10); generateSnack(&p); + Graphics::get().refreshScreen(); std::this_thread::sleep_for(std::chrono::seconds(10)); Graphics::get().finalize();