diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-01-19 17:45:43 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-01-19 17:45:43 +0200 |
commit | 11660029174f1874d5fff76026df4f5d00471b6c (patch) | |
tree | 07362de250d52bebf5f462922d1c76a715de577a /src/app.c | |
parent | 83a6847babf282f1d334039f13e003773fd70cfc (diff) |
Event processing workaround (2.0.18+)
This is most likely not needed for older SDL versions.
IssueID #436
IssueID #438
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1268,7 +1268,7 @@ static iBool nextEvent_App_(iApp *d, enum iAppEventMode eventMode, SDL_Event *ev | |||
1268 | /* SDL regression circa 2.0.18? SDL_PollEvent() doesn't always return | 1268 | /* SDL regression circa 2.0.18? SDL_PollEvent() doesn't always return |
1269 | events posted immediately beforehand. Waiting with a very short timeout | 1269 | events posted immediately beforehand. Waiting with a very short timeout |
1270 | seems to work better. */ | 1270 | seems to work better. */ |
1271 | #if defined (iPlatformLinux) | 1271 | #if defined (iPlatformLinux) && SDL_VERSION_ATLEAST(2, 0, 18) |
1272 | return SDL_WaitEventTimeout(event, 1); | 1272 | return SDL_WaitEventTimeout(event, 1); |
1273 | #else | 1273 | #else |
1274 | return SDL_PollEvent(event); | 1274 | return SDL_PollEvent(event); |