aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/tightvnc/decoder/ZRLEDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/com/tightvnc/decoder/ZRLEDecoder.java')
-rw-r--r--java/src/com/tightvnc/decoder/ZRLEDecoder.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/java/src/com/tightvnc/decoder/ZRLEDecoder.java b/java/src/com/tightvnc/decoder/ZRLEDecoder.java
index 91f7c161..fbbb3a68 100644
--- a/java/src/com/tightvnc/decoder/ZRLEDecoder.java
+++ b/java/src/com/tightvnc/decoder/ZRLEDecoder.java
@@ -34,6 +34,15 @@ public class ZRLEDecoder extends RawDecoder {
//
public void handleRect(int x, int y, int w, int h) throws IOException, Exception {
+
+ //
+ // Write encoding ID to record output stream
+ //
+
+ if (dos != null) {
+ dos.writeInt(ZRLEDecoder.EncodingZRLE);
+ }
+
if (zrleInStream == null)
zrleInStream = new ZlibInStream();