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 15:01:13 +0300 |
commit | 58b4bbc5e92d4eb64da507d44fe5bbc9f535eee5 (patch) | |
tree | 299660bced2fb0b174e2d4f4c16c7d3aa8dcb8d9 /src/app.c | |
parent | 538f0fe2433344184f8c6c9435334a0e475fdcc6 (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
@@ -1008,6 +1008,9 @@ void processEvents_App(enum iAppEventMode eventMode) { | |||
1008 | case SDL_APP_LOWMEMORY: | 1008 | case SDL_APP_LOWMEMORY: |
1009 | clearCache_App_(); | 1009 | clearCache_App_(); |
1010 | break; | 1010 | break; |
1011 | case SDL_APP_WILLENTERFOREGROUND: | ||
1012 | invalidate_Window(d->window); | ||
1013 | break; | ||
1011 | case SDL_APP_DIDENTERFOREGROUND: | 1014 | case SDL_APP_DIDENTERFOREGROUND: |
1012 | gotEvents = iTrue; | 1015 | gotEvents = iTrue; |
1013 | d->warmupFrames = 5; | 1016 | d->warmupFrames = 5; |