aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/Decoder.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-01-31 11:21:51 +0100
committerPierre Ossman <ossman@cendio.se>2014-07-07 14:42:08 +0200
commitd704e4ae77724abca7835f53390dacbfe1b09f9f (patch)
treeafeeea0cb8e54240ce7fc8648f92f12599af81f7 /common/rfb/Decoder.cxx
parent4aba19e287b0105bb47777762ce14b3786d91019 (diff)
downloadtigervnc-d704e4ae77724abca7835f53390dacbfe1b09f9f.tar.gz
tigervnc-d704e4ae77724abca7835f53390dacbfe1b09f9f.zip
Handle CopyRect like any other encoding
Avoids having to special case things. Keeps the code simpler.
Diffstat (limited to 'common/rfb/Decoder.cxx')
-rw-r--r--common/rfb/Decoder.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/rfb/Decoder.cxx b/common/rfb/Decoder.cxx
index 9982c932..f774f28c 100644
--- a/common/rfb/Decoder.cxx
+++ b/common/rfb/Decoder.cxx
@@ -20,6 +20,7 @@
#include <rfb/encodings.h>
#include <rfb/Decoder.h>
#include <rfb/RawDecoder.h>
+#include <rfb/CopyRectDecoder.h>
#include <rfb/RREDecoder.h>
#include <rfb/HextileDecoder.h>
#include <rfb/ZRLEDecoder.h>
@@ -39,6 +40,7 @@ bool Decoder::supported(int encoding)
{
switch (encoding) {
case encodingRaw:
+ case encodingCopyRect:
case encodingRRE:
case encodingHextile:
case encodingZRLE:
@@ -54,6 +56,8 @@ Decoder* Decoder::createDecoder(int encoding, CMsgReader* reader)
switch (encoding) {
case encodingRaw:
return new RawDecoder(reader);
+ case encodingCopyRect:
+ return new CopyRectDecoder(reader);
case encodingRRE:
return new RREDecoder(reader);
case encodingHextile: