From 57d9e5e19f03ba1d066c5f6b13aca2812be99369 Mon Sep 17 00:00:00 2001 From: Oliver <480930+rivo@users.noreply.github.com> Date: Tue, 24 Oct 2023 14:27:21 +0200 Subject: [PATCH] Clearing screen before each draw. Fixes #899 --- application.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application.go b/application.go index 53bb2f2..2359b32 100644 --- a/application.go +++ b/application.go @@ -600,6 +600,9 @@ func (a *Application) draw() *Application { root.SetRect(0, 0, width, height) } + // Clear screen to remove unwanted artifacts from the previous cycle. + screen.Clear() + // Call before handler if there is one. if before != nil { if before(screen) {