Преглед на файлове

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
tags/v1.2.90
Pierre Ossman преди 12 години
родител
ревизия
65fb4b0a8d
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4
    0
      common/rfb/VNCSConnectionST.cxx

+ 4
- 0
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

Loading…
Отказ
Запис