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 7776 d4a39491577f
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
--- a/src/video/cocoa/SDL_cocoavideo.m	Thu Oct 03 00:54:58 2013 -0700
+++ b/src/video/cocoa/SDL_cocoavideo.m	Sun Jul 14 11:28:44 2013 -0700
@@ -33,6 +33,7 @@
 #include "SDL_endian.h"
 #include "SDL_cocoavideo.h"
 #include "SDL_cocoashape.h"
+#include "SDL_cocoamessagebox.h"
 #include "SDL_assert.h"
 
 /* Initialization/Query functions */
@@ -134,6 +135,8 @@
     device->GetClipboardText = Cocoa_GetClipboardText;
     device->HasClipboardText = Cocoa_HasClipboardText;
 
+    device->ShowMessageBox = Cocoa_ShowMessageBox;
+
     device->free = Cocoa_DeleteDevice;
 
     return device;
--- a/src/video/uikit/SDL_uikitvideo.m	Thu Oct 03 00:54:58 2013 -0700
+++ b/src/video/uikit/SDL_uikitvideo.m	Sun Jul 14 11:28:44 2013 -0700
@@ -35,6 +35,7 @@
 #include "SDL_uikitmodes.h"
 #include "SDL_uikitwindow.h"
 #include "SDL_uikitopengles.h"
+#include "SDL_uikitmessagebox.h"
 
 #define UIKITVID_DRIVER_NAME "uikit"
 
@@ -98,6 +99,9 @@
     device->GL_DeleteContext    = UIKit_GL_DeleteContext;
     device->GL_GetProcAddress   = UIKit_GL_GetProcAddress;
     device->GL_LoadLibrary        = UIKit_GL_LoadLibrary;
+
+    device->ShowMessageBox = UIKit_ShowMessageBox;
+
     device->free = UIKit_DeleteDevice;
 
     device->gl_config.accelerated = 1;
--- a/src/video/windows/SDL_windowsvideo.c	Thu Oct 03 00:54:58 2013 -0700
+++ b/src/video/windows/SDL_windowsvideo.c	Sun Jul 14 11:28:44 2013 -0700
@@ -32,6 +32,7 @@
 #include "SDL_windowsvideo.h"
 #include "SDL_windowsframebuffer.h"
 #include "SDL_windowsshape.h"
+#include "SDL_windowsmessagebox.h"
 
 /* Initialization/Query functions */
 static int WIN_VideoInit(_THIS);
@@ -145,6 +146,8 @@
     device->GetClipboardText = WIN_GetClipboardText;
     device->HasClipboardText = WIN_HasClipboardText;
 
+    device->ShowMessageBox = WIN_ShowMessageBox;
+
     device->free = WIN_DeleteDevice;
 
     return device;
--- a/src/video/x11/SDL_x11video.c	Thu Oct 03 00:54:58 2013 -0700
+++ b/src/video/x11/SDL_x11video.c	Sun Jul 14 11:28:44 2013 -0700
@@ -34,6 +34,7 @@
 #include "SDL_x11shape.h"
 #include "SDL_x11touch.h"
 #include "SDL_x11xinput2.h"
+#include "SDL_x11messagebox.h"
 
 #if SDL_VIDEO_OPENGL_EGL
 #include "SDL_x11opengles.h"
@@ -411,6 +412,8 @@
     device->GetClipboardText = X11_GetClipboardText;
     device->HasClipboardText = X11_HasClipboardText;
 
+    device->ShowMessageBox = X11_ShowMessageBox;
+
     device->free = X11_DeleteDevice;
 
     return device;