diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-18 12:33:10 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-18 12:33:10 +0300 |
commit | ca13d25e1e3dc1b2b7ea865866e9e4a5785f26d1 (patch) | |
tree | ad0c56b59e4a24d282e0670b5c66cd22702ec62e /src/app.c | |
parent | 8ac8290e282a8ce645abc6fd394e53f1de50ae99 (diff) |
App: Attempt to fix app restore issue
Cached content like font glyphs are (were?) not being restored when returning to foreground.
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1019,6 +1019,9 @@ void processEvents_App(enum iAppEventMode eventMode) { | |||
1019 | case SDL_APP_LOWMEMORY: | 1019 | case SDL_APP_LOWMEMORY: |
1020 | clearCache_App_(); | 1020 | clearCache_App_(); |
1021 | break; | 1021 | break; |
1022 | case SDL_APP_WILLENTERFOREGROUND: | ||
1023 | invalidate_Window(d->window); | ||
1024 | break; | ||
1022 | case SDL_APP_DIDENTERFOREGROUND: | 1025 | case SDL_APP_DIDENTERFOREGROUND: |
1023 | gotEvents = iTrue; | 1026 | gotEvents = iTrue; |
1024 | d->warmupFrames = 5; | 1027 | d->warmupFrames = 5; |