Skip to content

Commit

Permalink
Define RepeatNone, etc if the available Render version doesn't (#18385)
Browse files Browse the repository at this point in the history
  • Loading branch information
Behdad Esfahbod committed Nov 5, 2008
1 parent 1d8ad69 commit a1ab11d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/cairo-xlib-xrender-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,24 @@
#include <X11/extensions/Xrender.h>
#include <X11/extensions/renderproto.h>

/* We require Render >= 0.6. The following defines were only added in
* 0.10. Make sure they are defined.
*/

/* Filters included in 0.10 */
#ifndef FilterConvolution
#define FilterConvolution "convolution"
#endif

/* Extended repeat attributes included in 0.10 */
#ifndef RepeatNone
#define RepeatNone 0
#define RepeatNormal 1
#define RepeatPad 2
#define RepeatReflect 3
#endif


#else /* !CAIRO_HAS_XLIB_XRENDER_SURFACE */

/* Provide dummy symbols and macros to get it compile and take the fallback
Expand Down

0 comments on commit a1ab11d

Please sign in to comment.