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
@@ -474,7 +474,7 @@ bool EGLRenderer::initialize(PDECODER_PARAMETERS params)
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();
}
// Now we finally bail if we failed during SDL_CreateRenderer() above.