Clearing screen before each draw. Fixes #899

This commit is contained in:
Oliver 2023-10-24 14:27:21 +02:00
parent 6c844bdc5f
commit 57d9e5e19f
1 changed files with 3 additions and 0 deletions

View File

@ -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) {