Rev 1892 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1892 | Rev 3959 | ||
---|---|---|---|
Line 94... | Line 94... | ||
94 | #define PictOpHSLColor 0x3d |
94 | #define PictOpHSLColor 0x3d |
95 | #define PictOpHSLLuminosity 0x3e |
95 | #define PictOpHSLLuminosity 0x3e |
96 | #define PictOpBlendMaximum 0x3e |
96 | #define PictOpBlendMaximum 0x3e |
97 | #endif |
97 | #endif |
Line 98... | Line -... | ||
98 | - | ||
99 | /* There doesn't appear to be a simple #define that we can conditionalize |
- | |
100 | * on. Instead, use the version; gradients were introdiced in 0.10. */ |
98 | |
101 | #if RENDER_MAJOR == 0 && RENDER_MINOR < 10 |
99 | #if !HAVE_XRENDERCREATELINEARGRADIENT |
- | 100 | #define XRenderCreateLinearGradient _int_consume |
|
- | 101 | ||
- | 102 | typedef struct _XLinearGradient { |
|
- | 103 | XPointFixed p1; |
|
- | 104 | XPointFixed p2; |
|
- | 105 | } XLinearGradient; |
|
- | 106 | #endif |
|
- | 107 | ||
102 | #define XRenderCreateLinearGradient _int_consume |
108 | #if !HAVE_XRENDERCREATERADIALGRADIENT |
103 | #define XRenderCreateRadialGradient _int_consume |
- | |
- | 109 | #define XRenderCreateRadialGradient _int_consume |
|
104 | #define XRenderCreateConicalGradient _int_consume |
110 | |
105 | typedef struct _XCircle { |
111 | typedef struct _XCircle { |
106 | XFixed x; |
112 | XFixed x; |
107 | XFixed y; |
113 | XFixed y; |
108 | XFixed radius; |
114 | XFixed radius; |
109 | } XCircle; |
- | |
110 | typedef struct _XLinearGradient { |
- | |
111 | XPointFixed p1; |
- | |
112 | XPointFixed p2; |
- | |
113 | } XLinearGradient; |
- | |
114 | 115 | } XCircle; |
|
115 | typedef struct _XRadialGradient { |
116 | typedef struct _XRadialGradient { |
116 | XCircle inner; |
117 | XCircle inner; |
117 | XCircle outer; |
118 | XCircle outer; |
- | 119 | } XRadialGradient; |
|
- | 120 | #endif |
|
- | 121 | ||
- | 122 | #if !HAVE_XRENDERCREATECONICALGRADIENT |
|
Line 118... | Line 123... | ||
118 | } XRadialGradient; |
123 | #define XRenderCreateConicalGradient _int_consume |
119 | 124 | ||
120 | typedef struct _XConicalGradient { |
125 | typedef struct _XConicalGradient { |
121 | XPointFixed center; |
126 | XPointFixed center; |