Skip to content

Commit

Permalink
Add implementation for CORE.Window.eventWaiting on PLATFORM_DESKTOP_SDL
Browse files Browse the repository at this point in the history
  • Loading branch information
asdqwe committed Dec 27, 2024
1 parent 7ecc47d commit 0ffde44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/platforms/rcore_desktop_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1378,7 +1378,8 @@ void PollInputEvents(void)

CORE.Window.resizedLastFrame = false;

if (((CORE.Window.flags & FLAG_WINDOW_MINIMIZED) > 0) && ((CORE.Window.flags & FLAG_WINDOW_ALWAYS_RUN) == 0)) SDL_WaitEvent(NULL);
if ((CORE.Window.eventWaiting) || (((CORE.Window.flags & FLAG_WINDOW_MINIMIZED) > 0) && ((CORE.Window.flags & FLAG_WINDOW_ALWAYS_RUN) == 0))) SDL_WaitEvent(NULL);
if (CORE.Window.eventWaiting) CORE.Time.previous = GetTime();

SDL_Event event = { 0 };
while (SDL_PollEvent(&event) != 0)
Expand Down

0 comments on commit 0ffde44

Please sign in to comment.