summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2022-01-19 17:45:43 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2022-01-19 17:45:43 +0200
commit11660029174f1874d5fff76026df4f5d00471b6c (patch)
tree07362de250d52bebf5f462922d1c76a715de577a /src/app.c
parent83a6847babf282f1d334039f13e003773fd70cfc (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app.c b/src/app.c
index 4045610e..30221582 100644
--- a/src/app.c
+++ b/src/app.c
@@ -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);