diff --git a/src/containers/container.cpp b/src/containers/container.cpp index 31ddfe4..806da3b 100644 --- a/src/containers/container.cpp +++ b/src/containers/container.cpp @@ -144,6 +144,11 @@ bool Container::hasInternalChange() const void Container::update() const { auto &window = getRoot()->windowSFWindow(); + if (isRoot()) + { + window.clear(backgroudColor); + return; + } window.setView(view); sf::RectangleShape bg(vec(size.x, size.y)); bg.setPosition(vec(0.f, 0.f));