summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--render.h17
-rw-r--r--renderproto.h25
2 files changed, 41 insertions, 1 deletions
diff --git a/render.h b/render.h
index 7ecde3f..5cd79ff 100644
--- a/render.h
+++ b/render.h
@@ -77,7 +77,9 @@ typedef XID PictFormat;
#define X_RenderCreateLinearGradient 34
#define X_RenderCreateRadialGradient 35
#define X_RenderCreateConicalGradient 36
-#define RenderNumberRequests (X_RenderCreateConicalGradient+1)
+/* 0.12 */
+#define X_RenderPath 37
+#define RenderNumberRequests (X_RenderPath+1)
#define BadPictFormat 0
#define BadPicture 1
@@ -207,4 +209,17 @@ typedef XID PictFormat;
#define RepeatPad 2
#define RepeatReflect 3
+/* Path added in 0.12 */
+#define PathOpMoveTo 0
+#define PathOpRelMoveTo 1
+#define PathOpLineTo 2
+#define PathOpRelLineTo 3
+#define PathOpQuadTo 4
+#define PathOpRelQuadTo 5
+#define PathOpCubicTo 6
+#define PathOpRelCubicTo 7
+#define PathOpArcTo 8
+#define PathOpRelArcTo 9
+#define PathOpClose 10
+
#endif /* _RENDER_H_ */
diff --git a/renderproto.h b/renderproto.h
index b7b72c1..977b9d3 100644
--- a/renderproto.h
+++ b/renderproto.h
@@ -640,6 +640,31 @@ typedef struct {
#define sz_xRenderCreateConicalGradientReq 24
+/* Added in 0.12 */
+
+typedef struct {
+ CARD8 reqType;
+ CARD8 renderReqType;
+ CARD16 length B16;
+ CARD8 op;
+ CARD8 fillRule;
+ CARD16 pad1 B16;
+ Picture src B32;
+ Picture dst B32;
+ INT16 xSrc B16;
+ INT16 ySrc B16;
+ INT16 xMask B16;
+ INT16 yMask B16;
+ INT16 xDst B16;
+ INT16 yDst B16;
+ CARD16 width B16;
+ CARD16 height B16;
+ CARD32 num_ops;
+} xRenderPathReq;
+
+#define sz_xRenderPathReq 36
+
+
#undef Window
#undef Drawable
#undef Font