Renamed SDL life cycle functions

This maps better to how SDL delivers the events, and the iOS delegate methods are in the documentation for reference.
This commit is contained in:
Sam Lantinga
2024-07-23 21:59:35 -07:00
parent 06c0ed68b1
commit fa0918a686
10 changed files with 30 additions and 14 deletions

View File

@@ -172,14 +172,14 @@ void SDL_SendPendingSignalEvents(void)
#ifdef SDL_BACKGROUNDING_SIGNAL
if (send_backgrounding_pending) {
send_backgrounding_pending = SDL_FALSE;
SDL_OnApplicationWillResignActive();
SDL_OnApplicationWillEnterBackground();
}
#endif
#ifdef SDL_FOREGROUNDING_SIGNAL
if (send_foregrounding_pending) {
send_foregrounding_pending = SDL_FALSE;
SDL_OnApplicationDidBecomeActive();
SDL_OnApplicationDidEnterForeground();
}
#endif
#endif