Remove partial update functionality
Get rid of the ability of encoders to only send part of the
rectangle they are given as we don't want partial updates
anyway.
diff --git a/common/rfb/RREEncoder.cxx b/common/rfb/RREEncoder.cxx
index 36d4695..09702cf 100644
--- a/common/rfb/RREEncoder.cxx
+++ b/common/rfb/RREEncoder.cxx
@@ -41,7 +41,7 @@
{
}
-bool RREEncoder::writeRect(const Rect& r, TransImageGetter* ig, Rect* actual)
+void RREEncoder::writeRect(const Rect& r, TransImageGetter* ig)
{
int w = r.width();
int h = r.height();
@@ -58,7 +58,8 @@
}
if (nSubrects < 0) {
- return writer->writeRect(r, encodingRaw, ig, actual);
+ writer->writeRect(r, encodingRaw, ig);
+ return;
}
writer->startRect(r, encodingRRE);
@@ -66,5 +67,4 @@
os->writeU32(nSubrects);
os->writeBytes(mos.data(), mos.length());
writer->endRect();
- return true;
}