diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/app.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1317,9 +1317,9 @@ void processEvents_App(enum iAppEventMode eventMode) { | |||
1317 | d->isSuspended = iFalse; | 1317 | d->isSuspended = iFalse; |
1318 | break; | 1318 | break; |
1319 | case SDL_APP_DIDENTERFOREGROUND: | 1319 | case SDL_APP_DIDENTERFOREGROUND: |
1320 | gotEvents = iTrue; | ||
1321 | d->warmupFrames = 5; | 1320 | d->warmupFrames = 5; |
1322 | #if defined (LAGRANGE_ENABLE_IDLE_SLEEP) | 1321 | #if defined (LAGRANGE_ENABLE_IDLE_SLEEP) |
1322 | gotEvents = iTrue; | ||
1323 | d->isIdling = iFalse; | 1323 | d->isIdling = iFalse; |
1324 | d->lastEventTime = SDL_GetTicks(); | 1324 | d->lastEventTime = SDL_GetTicks(); |
1325 | #endif | 1325 | #endif |
@@ -1387,8 +1387,8 @@ void processEvents_App(enum iAppEventMode eventMode) { | |||
1387 | // fflush(stdout); | 1387 | // fflush(stdout); |
1388 | } | 1388 | } |
1389 | d->isIdling = iFalse; | 1389 | d->isIdling = iFalse; |
1390 | #endif | ||
1391 | gotEvents = iTrue; | 1390 | gotEvents = iTrue; |
1391 | #endif | ||
1392 | /* Keyboard modifier mapping. */ | 1392 | /* Keyboard modifier mapping. */ |
1393 | if (ev.type == SDL_KEYDOWN || ev.type == SDL_KEYUP) { | 1393 | if (ev.type == SDL_KEYDOWN || ev.type == SDL_KEYUP) { |
1394 | /* Track Caps Lock state as a modifier. */ | 1394 | /* Track Caps Lock state as a modifier. */ |