Added the platform specific messagebox function to the video function list
authorSam Lantinga <slouken@libsdl.org>
Sun, 14 Jul 2013 11:28:44 -0700
changeset 7776d4a39491577f
parent 7775 dad9001a9fc7
child 7777 d5489cec371b
Added the platform specific messagebox function to the video function list
src/video/cocoa/SDL_cocoavideo.m
src/video/uikit/SDL_uikitvideo.m
src/video/windows/SDL_windowsvideo.c
src/video/x11/SDL_x11video.c
     1.1 --- a/src/video/cocoa/SDL_cocoavideo.m	Thu Oct 03 00:54:58 2013 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoavideo.m	Sun Jul 14 11:28:44 2013 -0700
     1.3 @@ -33,6 +33,7 @@
     1.4  #include "SDL_endian.h"
     1.5  #include "SDL_cocoavideo.h"
     1.6  #include "SDL_cocoashape.h"
     1.7 +#include "SDL_cocoamessagebox.h"
     1.8  #include "SDL_assert.h"
     1.9  
    1.10  /* Initialization/Query functions */
    1.11 @@ -134,6 +135,8 @@
    1.12      device->GetClipboardText = Cocoa_GetClipboardText;
    1.13      device->HasClipboardText = Cocoa_HasClipboardText;
    1.14  
    1.15 +    device->ShowMessageBox = Cocoa_ShowMessageBox;
    1.16 +
    1.17      device->free = Cocoa_DeleteDevice;
    1.18  
    1.19      return device;
     2.1 --- a/src/video/uikit/SDL_uikitvideo.m	Thu Oct 03 00:54:58 2013 -0700
     2.2 +++ b/src/video/uikit/SDL_uikitvideo.m	Sun Jul 14 11:28:44 2013 -0700
     2.3 @@ -35,6 +35,7 @@
     2.4  #include "SDL_uikitmodes.h"
     2.5  #include "SDL_uikitwindow.h"
     2.6  #include "SDL_uikitopengles.h"
     2.7 +#include "SDL_uikitmessagebox.h"
     2.8  
     2.9  #define UIKITVID_DRIVER_NAME "uikit"
    2.10  
    2.11 @@ -98,6 +99,9 @@
    2.12      device->GL_DeleteContext    = UIKit_GL_DeleteContext;
    2.13      device->GL_GetProcAddress   = UIKit_GL_GetProcAddress;
    2.14      device->GL_LoadLibrary        = UIKit_GL_LoadLibrary;
    2.15 +
    2.16 +    device->ShowMessageBox = UIKit_ShowMessageBox;
    2.17 +
    2.18      device->free = UIKit_DeleteDevice;
    2.19  
    2.20      device->gl_config.accelerated = 1;
     3.1 --- a/src/video/windows/SDL_windowsvideo.c	Thu Oct 03 00:54:58 2013 -0700
     3.2 +++ b/src/video/windows/SDL_windowsvideo.c	Sun Jul 14 11:28:44 2013 -0700
     3.3 @@ -32,6 +32,7 @@
     3.4  #include "SDL_windowsvideo.h"
     3.5  #include "SDL_windowsframebuffer.h"
     3.6  #include "SDL_windowsshape.h"
     3.7 +#include "SDL_windowsmessagebox.h"
     3.8  
     3.9  /* Initialization/Query functions */
    3.10  static int WIN_VideoInit(_THIS);
    3.11 @@ -145,6 +146,8 @@
    3.12      device->GetClipboardText = WIN_GetClipboardText;
    3.13      device->HasClipboardText = WIN_HasClipboardText;
    3.14  
    3.15 +    device->ShowMessageBox = WIN_ShowMessageBox;
    3.16 +
    3.17      device->free = WIN_DeleteDevice;
    3.18  
    3.19      return device;
     4.1 --- a/src/video/x11/SDL_x11video.c	Thu Oct 03 00:54:58 2013 -0700
     4.2 +++ b/src/video/x11/SDL_x11video.c	Sun Jul 14 11:28:44 2013 -0700
     4.3 @@ -34,6 +34,7 @@
     4.4  #include "SDL_x11shape.h"
     4.5  #include "SDL_x11touch.h"
     4.6  #include "SDL_x11xinput2.h"
     4.7 +#include "SDL_x11messagebox.h"
     4.8  
     4.9  #if SDL_VIDEO_OPENGL_EGL
    4.10  #include "SDL_x11opengles.h"
    4.11 @@ -411,6 +412,8 @@
    4.12      device->GetClipboardText = X11_GetClipboardText;
    4.13      device->HasClipboardText = X11_HasClipboardText;
    4.14  
    4.15 +    device->ShowMessageBox = X11_ShowMessageBox;
    4.16 +
    4.17      device->free = X11_DeleteDevice;
    4.18  
    4.19      return device;