Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Adding a few #defines for Xrender support.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyps committed May 19, 2010
1 parent 1b0384f commit 0a4a775
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/SDL_config.h.in
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/video/x11/SDL_x11dyn.h
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions src/video/x11/SDL_x11video.h
Expand Up @@ -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"

Expand Down

0 comments on commit 0a4a775

Please sign in to comment.