src/video/SDL_video.c
changeset 9135 6cd8e6b54f4d
parent 9127 a8c38ed1a674
child 9163 d05b5b2775ae
     1.1 --- a/src/video/SDL_video.c	Fri Sep 12 15:09:33 2014 -0700
     1.2 +++ b/src/video/SDL_video.c	Sat Sep 13 02:15:18 2014 -0700
     1.3 @@ -3265,6 +3265,9 @@
     1.4      return SDL_FALSE;
     1.5  }
     1.6  
     1.7 +#if SDL_VIDEO_DRIVER_ANDROID
     1.8 +#include "android/SDL_androidmessagebox.h"
     1.9 +#endif
    1.10  #if SDL_VIDEO_DRIVER_WINDOWS
    1.11  #include "windows/SDL_windowsmessagebox.h"
    1.12  #endif
    1.13 @@ -3329,6 +3332,12 @@
    1.14      }
    1.15  
    1.16      /* It's completely fine to call this function before video is initialized */
    1.17 +#if SDL_VIDEO_DRIVER_ANDROID
    1.18 +    if (retval == -1 &&
    1.19 +        Android_ShowMessageBox(messageboxdata, buttonid) == 0) {
    1.20 +        retval = 0;
    1.21 +    }
    1.22 +#endif
    1.23  #if SDL_VIDEO_DRIVER_WINDOWS
    1.24      if (retval == -1 &&
    1.25          SDL_MessageboxValidForDriver(messageboxdata, SDL_SYSWM_WINDOWS) &&