Mercurial > sdl-ios-xcode
changeset 4570:36fad921c97f
Adding a few #defines for Xrender support.
author | Sunny Sachanandani <sunnysachanandani@gmail.com> |
---|---|
date | Wed, 19 May 2010 18:58:28 +0530 |
parents | fa77a6429698 |
children | 97dcf6f6213c |
files | include/SDL_config.h.in src/video/x11/SDL_x11dyn.h src/video/x11/SDL_x11video.h |
diffstat | 3 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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"