Move window event handling into separate functions

This commit is contained in:
Cameron Gutman
2025-01-30 22:58:02 -06:00
parent d1f3b98a1f
commit 3a22a01aef
8 changed files with 244 additions and 209 deletions
@@ -78,7 +78,7 @@ void MmalRenderer::prepareToRender()
else {
// If we get here prior to the start of a session, just pump and flush ourselves.
SDL_PumpEvents();
SDL_FlushEvent(SDL_WINDOWEVENT);
SDLC_FlushWindowEvents();
}
SDL_SetRenderDrawColor(m_BackgroundRenderer, 0, 0, 0, SDL_ALPHA_OPAQUE);