Decode overlapping rectangles in order
diff --git a/common/rfb/Decoder.cxx b/common/rfb/Decoder.cxx
index f9bbffc..df785eb 100644
--- a/common/rfb/Decoder.cxx
+++ b/common/rfb/Decoder.cxx
@@ -18,6 +18,7 @@
*/
#include <stdio.h>
#include <rfb/encodings.h>
+#include <rfb/Region.h>
#include <rfb/Decoder.h>
#include <rfb/RawDecoder.h>
#include <rfb/CopyRectDecoder.h>
@@ -36,6 +37,13 @@
{
}
+void Decoder::getAffectedRegion(const Rect& rect, const void* buffer,
+ size_t buflen, const ConnParams& cp,
+ Region* region)
+{
+ region->reset(rect);
+}
+
bool Decoder::supported(int encoding)
{
switch (encoding) {