Adding a few #defines for Xrender support.
authorSunny Sachanandani <sunnysachanandani@gmail.com>
Wed, 19 May 2010 18:58:28 +0530
changeset 457036fad921c97f
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
     1.1 --- a/include/SDL_config.h.in	Sun May 09 19:55:28 2010 -0700
     1.2 +++ b/include/SDL_config.h.in	Wed May 19 18:58:28 2010 +0530
     1.3 @@ -278,6 +278,7 @@
     1.4  #undef SDL_VIDEO_DRIVER_X11_XINPUT
     1.5  #undef SDL_VIDEO_DRIVER_X11_SCRNSAVER
     1.6  #undef SDL_VIDEO_DRIVER_X11_XV
     1.7 +#undef SDL_VIDEO_DRIVER_X11_XRENDER
     1.8  
     1.9  #undef SDL_VIDEO_RENDER_D3D
    1.10  #undef SDL_VIDEO_RENDER_GDI
     2.1 --- a/src/video/x11/SDL_x11dyn.h	Sun May 09 19:55:28 2010 -0700
     2.2 +++ b/src/video/x11/SDL_x11dyn.h	Wed May 19 18:58:28 2010 +0530
     2.3 @@ -52,6 +52,10 @@
     2.4  #include <X11/extensions/XInput.h>
     2.5  #endif
     2.6  
     2.7 +#if SDL_VIDEO_DRIVER_X11_XRENDER
     2.8 +#include <X11/extensions/render.h>
     2.9 +#endif
    2.10 +
    2.11  /*
    2.12   * When using the "dynamic X11" functionality, we duplicate all the Xlib
    2.13   *  symbols that would be referenced by SDL inside of SDL itself.
     3.1 --- a/src/video/x11/SDL_x11video.h	Sun May 09 19:55:28 2010 -0700
     3.2 +++ b/src/video/x11/SDL_x11video.h	Wed May 19 18:58:28 2010 +0530
     3.3 @@ -45,6 +45,9 @@
     3.4  #if SDL_VIDEO_DRIVER_X11_SCRNSAVER
     3.5  #include <X11/extensions/scrnsaver.h>
     3.6  #endif
     3.7 +#if SDL_VIDEO_DRIVER_X11_XRENDER
     3.8 +#include <X11/extensions/render.h>
     3.9 +#endif
    3.10  
    3.11  #include "SDL_x11dyn.h"
    3.12