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
+1 -1
View File
@@ -280,7 +280,7 @@ void DrmRenderer::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(renderer, 0, 0, 0, SDL_ALPHA_OPAQUE);