aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/tightvnc/decoder/RREDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/com/tightvnc/decoder/RREDecoder.java')
-rw-r--r--java/src/com/tightvnc/decoder/RREDecoder.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/java/src/com/tightvnc/decoder/RREDecoder.java b/java/src/com/tightvnc/decoder/RREDecoder.java
index e2b5feb2..02eb513f 100644
--- a/java/src/com/tightvnc/decoder/RREDecoder.java
+++ b/java/src/com/tightvnc/decoder/RREDecoder.java
@@ -30,6 +30,15 @@ public class RREDecoder extends RawDecoder {
//
public void handleRect(int x, int y, int w, int h) throws IOException {
+
+ //
+ // Write encoding ID to record output stream
+ //
+
+ if (dos != null) {
+ dos.writeInt(RREDecoder.EncodingRRE);
+ }
+
int nSubrects = rfbis.readU32();
byte[] bg_buf = new byte[bytesPerPixel];
rfbis.readFully(bg_buf);