summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-18 12:33:10 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-18 12:33:10 +0300
commitca13d25e1e3dc1b2b7ea865866e9e4a5785f26d1 (patch)
treead0c56b59e4a24d282e0670b5c66cd22702ec62e /src/app.c
parent8ac8290e282a8ce645abc6fd394e53f1de50ae99 (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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app.c b/src/app.c
index cc172139..26670a65 100644
--- a/src/app.c
+++ b/src/app.c
@@ -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;