Fix idling hogging 100% of a CPU core

This was me not converting the WinAPI code properly. Stupid me.
This commit is contained in:
Clownacy 2019-09-05 21:07:30 +00:00
parent 1b8fbcee43
commit 12f69e3c6c

View file

@ -364,9 +364,13 @@ void JoystickProc(void);
BOOL SystemTask(void)
{
SDL_Event event;
while (SDL_PollEvent(&event) || !bActive)
while (SDL_PollEvent(NULL) || !bActive)
{
SDL_Event event;
if (!SDL_WaitEvent(&event))
return FALSE;
switch (event.type)
{
case SDL_KEYDOWN: