diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-01-31 11:21:51 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-07-07 14:42:08 +0200 |
commit | d704e4ae77724abca7835f53390dacbfe1b09f9f (patch) | |
tree | afeeea0cb8e54240ce7fc8648f92f12599af81f7 /common/rfb/Decoder.cxx | |
parent | 4aba19e287b0105bb47777762ce14b3786d91019 (diff) | |
download | tigervnc-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.cxx | 4 |
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: |