Revision: 4858
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4858&view=rev
Author:   ossman_
Date:     2012-02-28 11:54:01 +0000 (Tue, 28 Feb 2012)
Log Message:
-----------
Comment where the mysterious 0xFFFF number of rectangles comes from.
Patch by Arthur Huillet.

Modified Paths:
--------------
    trunk/common/rfb/VNCSConnectionST.cxx

Modified: trunk/common/rfb/VNCSConnectionST.cxx
===================================================================
--- trunk/common/rfb/VNCSConnectionST.cxx       2012-02-16 12:44:51 UTC (rev 
4857)
+++ trunk/common/rfb/VNCSConnectionST.cxx       2012-02-28 11:54:01 UTC (rev 
4858)
@@ -1083,6 +1083,10 @@
       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

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Tigervnc-commits mailing list
Tigervnc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to