src/video/SDL_video.c
changeset 6620 62fe18dc6841
parent 6619 42214b6959c5
child 6654 2ecfb25be1e2
child 8337 4a67a3cca43d
     1.1 --- a/src/video/SDL_video.c	Tue Oct 30 13:44:59 2012 -0700
     1.2 +++ b/src/video/SDL_video.c	Tue Oct 30 18:59:56 2012 -0700
     1.3 @@ -2841,6 +2841,9 @@
     1.4      return SDL_FALSE;
     1.5  }
     1.6  
     1.7 +#if SDL_VIDEO_DRIVER_WINDOWS
     1.8 +#include "windows/SDL_windowsmessagebox.h"
     1.9 +#endif
    1.10  #if SDL_VIDEO_DRIVER_COCOA
    1.11  #include "cocoa/SDL_cocoamessagebox.h"
    1.12  #endif
    1.13 @@ -2866,6 +2869,11 @@
    1.14      }
    1.15  
    1.16      /* It's completely fine to call this function before video is initialized */
    1.17 +#if SDL_VIDEO_DRIVER_WINDOWS
    1.18 +    if (WIN_ShowMessageBox(messageboxdata, buttonid) == 0) {
    1.19 +        return 0;
    1.20 +    }
    1.21 +#endif
    1.22  #if SDL_VIDEO_DRIVER_COCOA
    1.23      if (Cocoa_ShowMessageBox(messageboxdata, buttonid) == 0) {
    1.24          return 0;