diff --git a/dependencies/subprojects/animationwindow/src/AnimationWindow.cpp b/dependencies/subprojects/animationwindow/src/AnimationWindow.cpp index 14c872c50c3c5d585261eb0cee822abd4a2e6f08..4c0c1ecac30add7338f59b46ac6f7c1d9bb0f19b 100644 --- a/dependencies/subprojects/animationwindow/src/AnimationWindow.cpp +++ b/dependencies/subprojects/animationwindow/src/AnimationWindow.cpp @@ -412,4 +412,6 @@ void TDT4102::AnimationWindow::endNuklearDraw() { void TDT4102::AnimationWindow::setBackgroundColor(TDT4102::Color newBackgroundColor) { backgroundColor = newBackgroundColor; + SDL_SetRenderDrawColor(rendererHandle, backgroundColor.redChannel, backgroundColor.greenChannel, backgroundColor.blueChannel, backgroundColor.alphaChannel); + SDL_RenderClear(rendererHandle); }