src/video/SDL_video.c
changeset 13230 57ed423da32a
parent 13111 369b01006eb2
child 13238 007002587d5d
equal deleted inserted replaced
13229:0b98870c7f72 13230:57ed423da32a
  3844 #include "uikit/SDL_uikitmessagebox.h"
  3844 #include "uikit/SDL_uikitmessagebox.h"
  3845 #endif
  3845 #endif
  3846 #if SDL_VIDEO_DRIVER_X11
  3846 #if SDL_VIDEO_DRIVER_X11
  3847 #include "x11/SDL_x11messagebox.h"
  3847 #include "x11/SDL_x11messagebox.h"
  3848 #endif
  3848 #endif
  3849 
  3849 #if SDL_VIDEO_DRIVER_HAIKU
  3850 
  3850 #include "haiku/SDL_bmessagebox.h"
  3851 #if SDL_VIDEO_DRIVER_WINDOWS || SDL_VIDEO_DRIVER_WINRT || SDL_VIDEO_DRIVER_COCOA || SDL_VIDEO_DRIVER_UIKIT || SDL_VIDEO_DRIVER_X11
  3851 #endif
       
  3852 
       
  3853 
       
  3854 #if SDL_VIDEO_DRIVER_WINDOWS || SDL_VIDEO_DRIVER_WINRT || SDL_VIDEO_DRIVER_COCOA || SDL_VIDEO_DRIVER_UIKIT || SDL_VIDEO_DRIVER_X11 || SDL_VIDEO_DRIVER_HAIKU
  3852 static SDL_bool SDL_MessageboxValidForDriver(const SDL_MessageBoxData *messageboxdata, SDL_SYSWM_TYPE drivertype)
  3855 static SDL_bool SDL_MessageboxValidForDriver(const SDL_MessageBoxData *messageboxdata, SDL_SYSWM_TYPE drivertype)
  3853 {
  3856 {
  3854     SDL_SysWMinfo info;
  3857     SDL_SysWMinfo info;
  3855     SDL_Window *window = messageboxdata->window;
  3858     SDL_Window *window = messageboxdata->window;
  3856 
  3859 
  3936 #endif
  3939 #endif
  3937 #if SDL_VIDEO_DRIVER_X11
  3940 #if SDL_VIDEO_DRIVER_X11
  3938     if (retval == -1 &&
  3941     if (retval == -1 &&
  3939         SDL_MessageboxValidForDriver(messageboxdata, SDL_SYSWM_X11) &&
  3942         SDL_MessageboxValidForDriver(messageboxdata, SDL_SYSWM_X11) &&
  3940         X11_ShowMessageBox(messageboxdata, buttonid) == 0) {
  3943         X11_ShowMessageBox(messageboxdata, buttonid) == 0) {
       
  3944         retval = 0;
       
  3945     }
       
  3946 #endif
       
  3947 #if SDL_VIDEO_DRIVER_HAIKU
       
  3948     if (retval == -1 &&
       
  3949         SDL_MessageboxValidForDriver(messageboxdata, SDL_SYSWM_HAIKU) &&
       
  3950         BE_ShowMessageBox(messageboxdata, buttonid) == 0) {
  3941         retval = 0;
  3951         retval = 0;
  3942     }
  3952     }
  3943 #endif
  3953 #endif
  3944     if (retval == -1) {
  3954     if (retval == -1) {
  3945         SDL_SetError("No message system available");
  3955         SDL_SetError("No message system available");