summaryrefslogtreecommitdiffstats
path: root/common/rfb/RREEncoder.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-01-21 14:45:10 +0100
committerPierre Ossman <ossman@cendio.se>2014-07-07 14:42:08 +0200
commit717c07b9671badeef0c18c91cf17fe9747559787 (patch)
treed4ad9cfc9e04cb0453118869c5cfe2ec660320f7 /common/rfb/RREEncoder.cxx
parentc0b1aa021dff606c32aed0f1ac38ab51baf093af (diff)
downloadtigervnc-717c07b9671badeef0c18c91cf17fe9747559787.tar.gz
tigervnc-717c07b9671badeef0c18c91cf17fe9747559787.zip
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.
Diffstat (limited to 'common/rfb/RREEncoder.cxx')
-rw-r--r--common/rfb/RREEncoder.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/rfb/RREEncoder.cxx b/common/rfb/RREEncoder.cxx
index 36d46955..09702cf7 100644
--- a/common/rfb/RREEncoder.cxx
+++ b/common/rfb/RREEncoder.cxx
@@ -41,7 +41,7 @@ RREEncoder::~RREEncoder()
{
}
-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 @@ bool RREEncoder::writeRect(const Rect& r, TransImageGetter* ig, Rect* actual)
}
if (nSubrects < 0) {
- return writer->writeRect(r, encodingRaw, ig, actual);
+ writer->writeRect(r, encodingRaw, ig);
+ return;
}
writer->startRect(r, encodingRRE);
@@ -66,5 +67,4 @@ bool RREEncoder::writeRect(const Rect& r, TransImageGetter* ig, Rect* actual)
os->writeU32(nSubrects);
os->writeBytes(mos.data(), mos.length());
writer->endRect();
- return true;
}