From f87a6ecd5a9ca51f7c6346dc0d3261991b7f9386 Mon Sep 17 00:00:00 2001
From: Joakim Hunskaar <joakim.borge.hunskar@gmail.com>
Date: Sun, 2 Mar 2025 19:18:32 +0100
Subject: [PATCH] actually change bg color in renderer

---
 .../subprojects/animationwindow/src/AnimationWindow.cpp         | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dependencies/subprojects/animationwindow/src/AnimationWindow.cpp b/dependencies/subprojects/animationwindow/src/AnimationWindow.cpp
index 14c872c..4c0c1ec 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);
 }
-- 
GitLab