mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-29 22:00:09 +01:00
render: return the supported version rather than just passing the proto's version
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
f5d1da499c
commit
d78669c92d
1 changed files with 5 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue