Readd go_to_background call when quitting application

This commit is contained in:
Yousef Khadadeh 2026-05-18 09:58:46 +03:00
parent c07871337c
commit 62128280c1

View file

@ -626,8 +626,12 @@ SDL_AppResult SDL_AppIterate(void *appstate) {
#endif
mS.m->update();
if(mS.m->setToQuit)
if(mS.m->setToQuit) {
#ifdef __ANDROID__
mS.m->input_app_about_to_go_to_background_callback();
#endif
return SDL_APP_SUCCESS;
}
if(mS.m->input.hideCursor) {
SDL_HideCursor();
@ -836,8 +840,12 @@ SDL_AppResult SDL_AppEvent(void *appstate, SDL_Event *event) {
}
#endif
if(mS.m->setToQuit)
if(mS.m->setToQuit) {
#ifdef __ANDROID__
mS.m->input_app_about_to_go_to_background_callback();
#endif
return SDL_APP_SUCCESS;
}
return SDL_APP_CONTINUE;
}