summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);