aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/damageext/damageext.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-06-28 12:07:10 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-07-02 13:51:37 +0200
commit487870fff5cd1bc3db5ade4f5721f483f96119c7 (patch)
treee41ad6d5cd85b97101c9fd3d37be951eee1a409e /nx-X11/programs/Xserver/damageext/damageext.c
parenta08e2323e838099cc2079287c5b3fd1e9b7f20f7 (diff)
downloadnx-libs-487870fff5cd1bc3db5ade4f5721f483f96119c7.tar.gz
nx-libs-487870fff5cd1bc3db5ade4f5721f483f96119c7.tar.bz2
nx-libs-487870fff5cd1bc3db5ade4f5721f483f96119c7.zip
Xserver/include/protocol-versions.h: Switch to having an Xserver-specific header file containing all use protocol versions.
Diffstat (limited to 'nx-X11/programs/Xserver/damageext/damageext.c')
-rwxr-xr-xnx-X11/programs/Xserver/damageext/damageext.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/nx-X11/programs/Xserver/damageext/damageext.c b/nx-X11/programs/Xserver/damageext/damageext.c
index 8d03dfed5..d14f14985 100755
--- a/nx-X11/programs/Xserver/damageext/damageext.c
+++ b/nx-X11/programs/Xserver/damageext/damageext.c
@@ -27,6 +27,7 @@
#endif
#include "damageextint.h"
+#include "protocol-versions.h"
unsigned char DamageReqCode;
int DamageEventBase;
@@ -143,16 +144,16 @@ ProcDamageQueryVersion(ClientPtr client)
rep.type = X_Reply;
rep.length = 0;
rep.sequenceNumber = client->sequence;
- if (stuff->majorVersion < DAMAGE_MAJOR) {
+ if (stuff->majorVersion < SERVER_DAMAGE_MAJOR_VERSION) {
rep.majorVersion = stuff->majorVersion;
rep.minorVersion = stuff->minorVersion;
} else {
- rep.majorVersion = DAMAGE_MAJOR;
- if (stuff->majorVersion == DAMAGE_MAJOR &&
- stuff->minorVersion < DAMAGE_MINOR)
+ rep.majorVersion = SERVER_DAMAGE_MAJOR_VERSION;
+ if (stuff->majorVersion == SERVER_DAMAGE_MAJOR_VERSION &&
+ stuff->minorVersion < SERVER_DAMAGE_MINOR_VERSION)
rep.minorVersion = stuff->minorVersion;
else
- rep.minorVersion = DAMAGE_MINOR;
+ rep.minorVersion = SERVER_DAMAGE_MINOR_VERSION;
}
pDamageClient->major_version = rep.majorVersion;
pDamageClient->minor_version = rep.minorVersion;