summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Bosveld <Joel.Bosveld@gmail.com>2009-06-24 19:01:02 +0800
committerJoel Bosveld <Joel.Bosveld@gmail.com>2009-06-24 19:54:08 +0800
commit01751f36c56ea46dc22864d79acbb05aa6cb861b (patch)
treeef7e13f473096276f78838ce551d2512ccf3bfd2
parent5513d80f7a69c8848334213481a74061aa6bb9ea (diff)
Changes to make SetTriCoordMesh work if max_request_size is too small
Previously, when the max_request_size was too small, XCompositeSetTriangularCoordinateMesh would just send multiple requests, each with a portion of the triangles. Since the server would remove the mesh at each request, the end result was that only the triangles in the last request would be in the mesh
-rw-r--r--composite.h3
-rw-r--r--compositeproto.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/composite.h b/composite.h
index eb1efba..fc60607 100644
--- a/composite.h
+++ b/composite.h
@@ -54,6 +54,9 @@
#define CompositeRedirectAutomatic 0
#define CompositeRedirectManual 1
+#define CompositeSetMeshBegin (1<<0)
+#define CompositeSetMeshEnd (1<<1)
+
#define X_CompositeQueryVersion 0
#define X_CompositeRedirectWindow 1
#define X_CompositeRedirectSubwindows 2
diff --git a/compositeproto.h b/compositeproto.h
index 9180cf7..9d3769c 100644
--- a/compositeproto.h
+++ b/compositeproto.h
@@ -191,6 +191,9 @@ typedef struct {
CARD8 compositeReqType;
CARD16 length;
Window window B32;
+ CARD8 flags;
+ CARD8 pad1;
+ CARD16 total B16;
} xCompositeSetTriangularCoordinateMeshReq;
#define sz_xCompositeSetTriangularCoordinateMeshReq sizeof(xCompositeSetTriangularCoordinateMeshReq)