summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-09-22 12:09:48 -0700
committerKeith Packard <keithp@keithp.com>2009-09-22 12:09:48 -0700
commitd78669c92d751464bc3c8f79f2aa21ca0951e3a9 (patch)
treedbf0d0bc88ee9bcf088a83798b4355e41a3f07d4
parentf5d1da499c3d64f0a4ac217eb19911b8e35cb49b (diff)
render: return the supported version rather than just passing the proto's version
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--render/render.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/render/render.c b/render/render.c
index e3d76d2c1..d1020d5d1 100644
--- a/render/render.c
+++ b/render/render.c
@@ -54,6 +54,9 @@
#define UINT32_MAX 0xffffffffU
#endif
+#define SERVER_RENDER_MAJOR 0
+#define SERVER_RENDER_MINOR 10
+
static int ProcRenderQueryVersion (ClientPtr pClient);
static int ProcRenderQueryPictFormats (ClientPtr pClient);
static int ProcRenderQueryPictIndexValues (ClientPtr pClient);
@@ -271,8 +274,8 @@ ProcRenderQueryVersion (ClientPtr client)
rep.type = X_Reply;
rep.length = 0;
rep.sequenceNumber = client->sequence;
- rep.majorVersion = RENDER_MAJOR;
- rep.minorVersion = RENDER_MINOR;
+ rep.majorVersion = SERVER_RENDER_MAJOR;
+ rep.minorVersion = SERVER_RENDER_MINOR;
if (client->swapped) {
swaps(&rep.sequenceNumber, n);
swapl(&rep.length, n);