mirror of
https://github.com/encounter/SDL.git
synced 2025-12-13 23:26:18 +00:00
Fall back to polling normally if not operating the win32 message loop
In this condition, we cannot safely wait/wake on events.
This commit is contained in:
committed by
Sam Lantinga
parent
e13d5df00b
commit
85b51e6c92
@@ -1303,9 +1303,13 @@ WIN_WaitEventTimeout(_THIS, int timeout)
|
||||
TranslateMessage(&msg);
|
||||
DispatchMessage(&msg);
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
/* Fail the wait so the caller falls back to polling */
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user