diff options
author | Reinhard Tartler <siretart@tauware.de> | 2011-11-13 09:27:52 +0100 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2011-11-13 09:27:52 +0100 |
commit | 92239dafb601d2ee5da1554d19631267c81fe57c (patch) | |
tree | 8a2b406e1d1c66c459e6c4dc3f908b60d2feacd1 /nxcomp/ClientChannel.cpp | |
parent | d7a8d67d760a80962821f6951caee5a9c807f5be (diff) | |
download | nx-libs-92239dafb601d2ee5da1554d19631267c81fe57c.tar.gz nx-libs-92239dafb601d2ee5da1554d19631267c81fe57c.tar.bz2 nx-libs-92239dafb601d2ee5da1554d19631267c81fe57c.zip |
Imported nxcomp-3.2.0-6.tar.gznxcomp/3.2.0-6
Summary: Imported nxcomp-3.2.0-6.tar.gz
Keywords:
Imported nxcomp-3.2.0-6.tar.gz
into Git repository
Diffstat (limited to 'nxcomp/ClientChannel.cpp')
-rwxr-xr-x | nxcomp/ClientChannel.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/nxcomp/ClientChannel.cpp b/nxcomp/ClientChannel.cpp index 3c45501d6..e69a8794a 100755 --- a/nxcomp/ClientChannel.cpp +++ b/nxcomp/ClientChannel.cpp @@ -1139,8 +1139,18 @@ int ClientChannel::handleRead(EncodeBuffer &encodeBuffer, const unsigned char *m } unsigned int numPoints = ((inputLength - 16) >> 2); - encodeBuffer.encodeCachedValue(numPoints, 14, - clientCache_ -> fillPolyNumPointsCache, 4); + + if (control -> isProtoStep10() == 1) + { + encodeBuffer.encodeCachedValue(numPoints, 16, + clientCache_ -> fillPolyNumPointsCache, 4); + } + else + { + encodeBuffer.encodeCachedValue(numPoints, 14, + clientCache_ -> fillPolyNumPointsCache, 4); + } + encodeBuffer.encodeXidValue(GetULONG(inputMessage + 4, bigEndian_), clientCache_ -> drawableCache); encodeBuffer.encodeXidValue(GetULONG(inputMessage + 8, bigEndian_), |