Skip to content
Snippets Groups Projects
Commit f87a6ecd authored by Joakim Hunskaar's avatar Joakim Hunskaar
Browse files

actually change bg color in renderer

parent 81495560
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment