src/core/android/SDL_android.cpp
changeset 6191 2c0d35b1af4e
parent 6189 b5a665fbaedc
child 6212 78d854de3a66
     1.1 --- a/src/core/android/SDL_android.cpp	Sun Jan 08 13:31:22 2012 -0500
     1.2 +++ b/src/core/android/SDL_android.cpp	Sun Jan 08 13:42:03 2012 -0500
     1.3 @@ -39,7 +39,7 @@
     1.4  #define LOGE(...) do {} while (false)
     1.5  
     1.6  
     1.7 -/* Impelemented in audio/android/SDL_androidaudio.c */
     1.8 +/* Implemented in audio/android/SDL_androidaudio.c */
     1.9  extern void Android_RunAudioThread();
    1.10  } // C
    1.11  
    1.12 @@ -172,8 +172,8 @@
    1.13                                      JNIEnv* env, jclass cls)
    1.14  {
    1.15      if (Android_Window) {
    1.16 -        SDL_SendWindowEvent(Android_Window, SDL_WINDOWEVENT_HIDDEN, 0, 0);
    1.17          SDL_SendWindowEvent(Android_Window, SDL_WINDOWEVENT_FOCUS_LOST, 0, 0);
    1.18 +        SDL_SendWindowEvent(Android_Window, SDL_WINDOWEVENT_MINIMIZED, 0, 0);
    1.19      }
    1.20  }
    1.21  
    1.22 @@ -182,8 +182,8 @@
    1.23                                      JNIEnv* env, jclass cls)
    1.24  {
    1.25      if (Android_Window) {
    1.26 -        SDL_SendWindowEvent(Android_Window, SDL_WINDOWEVENT_SHOWN, 0, 0);
    1.27          SDL_SendWindowEvent(Android_Window, SDL_WINDOWEVENT_FOCUS_GAINED, 0, 0);
    1.28 +        SDL_SendWindowEvent(Android_Window, SDL_WINDOWEVENT_RESTORED, 0, 0);
    1.29      }
    1.30  }
    1.31