mirror of
https://github.com/encounter/SDL.git
synced 2025-12-16 08:27:05 +00:00
Android: same way as in nativePause(), resume events are sent from SDL thread
This commit is contained in:
@@ -113,6 +113,11 @@ Android_PumpEvents_Blocking(_THIS)
|
||||
|
||||
videodata->isPaused = 0;
|
||||
|
||||
/* Android_ResumeSem was signaled */
|
||||
SDL_SendAppEvent(SDL_APP_WILLENTERFOREGROUND);
|
||||
SDL_SendAppEvent(SDL_APP_DIDENTERFOREGROUND);
|
||||
SDL_SendWindowEvent(Android_Window, SDL_WINDOWEVENT_RESTORED, 0, 0);
|
||||
|
||||
ANDROIDAUDIO_ResumeDevices();
|
||||
openslES_ResumeDevices();
|
||||
|
||||
@@ -179,6 +184,11 @@ Android_PumpEvents_NonBlocking(_THIS)
|
||||
|
||||
videodata->isPaused = 0;
|
||||
|
||||
/* Android_ResumeSem was signaled */
|
||||
SDL_SendAppEvent(SDL_APP_WILLENTERFOREGROUND);
|
||||
SDL_SendAppEvent(SDL_APP_DIDENTERFOREGROUND);
|
||||
SDL_SendWindowEvent(Android_Window, SDL_WINDOWEVENT_RESTORED, 0, 0);
|
||||
|
||||
ANDROIDAUDIO_ResumeDevices();
|
||||
openslES_ResumeDevices();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user