Adding a few #defines for Xrender support.
authorSunny Sachanandani <sunnysachanandani@gmail.com>
Wed, 19 May 2010 18:58:28 +0530
changeset 4570 36fad921c97f
parent 4464 fa77a6429698
child 4571 97dcf6f6213c
Adding a few #defines for Xrender support.
include/SDL_config.h.in
src/video/x11/SDL_x11dyn.h
src/video/x11/SDL_x11video.h
--- a/include/SDL_config.h.in	Sun May 09 19:55:28 2010 -0700
+++ b/include/SDL_config.h.in	Wed May 19 18:58:28 2010 +0530
@@ -278,6 +278,7 @@
 #undef SDL_VIDEO_DRIVER_X11_XINPUT
 #undef SDL_VIDEO_DRIVER_X11_SCRNSAVER
 #undef SDL_VIDEO_DRIVER_X11_XV
+#undef SDL_VIDEO_DRIVER_X11_XRENDER
 
 #undef SDL_VIDEO_RENDER_D3D
 #undef SDL_VIDEO_RENDER_GDI
--- a/src/video/x11/SDL_x11dyn.h	Sun May 09 19:55:28 2010 -0700
+++ b/src/video/x11/SDL_x11dyn.h	Wed May 19 18:58:28 2010 +0530
@@ -52,6 +52,10 @@
 #include <X11/extensions/XInput.h>
 #endif
 
+#if SDL_VIDEO_DRIVER_X11_XRENDER
+#include <X11/extensions/render.h>
+#endif
+
 /*
  * When using the "dynamic X11" functionality, we duplicate all the Xlib
  *  symbols that would be referenced by SDL inside of SDL itself.
--- a/src/video/x11/SDL_x11video.h	Sun May 09 19:55:28 2010 -0700
+++ b/src/video/x11/SDL_x11video.h	Wed May 19 18:58:28 2010 +0530
@@ -45,6 +45,9 @@
 #if SDL_VIDEO_DRIVER_X11_SCRNSAVER
 #include <X11/extensions/scrnsaver.h>
 #endif
+#if SDL_VIDEO_DRIVER_X11_XRENDER
+#include <X11/extensions/render.h>
+#endif
 
 #include "SDL_x11dyn.h"