diff options
author | Pierre Ossman <ossman@cendio.se> | 2012-02-28 11:54:01 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2012-02-28 11:54:01 +0000 |
commit | 65fb4b0a8d77c2109c418fc5bd293a3e0e4cbc3f (patch) | |
tree | a057de4237c2075cad33380393dbd36367d38274 /common/rfb | |
parent | 595c1d417137fc38bc81d08adf325eb4efcc4554 (diff) | |
download | tigervnc-65fb4b0a8d77c2109c418fc5bd293a3e0e4cbc3f.tar.gz tigervnc-65fb4b0a8d77c2109c418fc5bd293a3e0e4cbc3f.zip |
Comment where the mysterious 0xFFFF number of rectangles comes from.
Patch by Arthur Huillet.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4858 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb')
-rw-r--r-- | common/rfb/VNCSConnectionST.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/rfb/VNCSConnectionST.cxx b/common/rfb/VNCSConnectionST.cxx index deec186f..1ecd78c2 100644 --- a/common/rfb/VNCSConnectionST.cxx +++ b/common/rfb/VNCSConnectionST.cxx @@ -1083,6 +1083,10 @@ void VNCSConnectionST::writeFramebufferUpdate() if (i->width() && i->height()) { int nUpdateRects = writer()->getNumRects(*i); if (nUpdateRects == 0 && cp.currentEncoding() == encodingTight) { + // With Tight encoding and LastRect support, the client does not + // care about the number of rectangles in the update - it will + // stop parsing when it encounters a LastRect "rectangle". + // In this case, pretend to send 65535 rectangles. nRects = 0xFFFF; break; } else |