# HG changeset patch # User oc # Date 1403690967 -32400 # Node ID f381159e38f31143843fbfccae9d585dc994bc82 # Parent f176bffcdc4a48e6fe7f2a77a2427ff74b7a5a1b fix readSendData. diff -r f176bffcdc4a -r f381159e38f3 src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEESender.java --- a/src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEESender.java Tue Jun 24 16:49:29 2014 +0900 +++ b/src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEESender.java Wed Jun 25 19:09:27 2014 +0900 @@ -23,8 +23,8 @@ FramebufferUpdateRectangle rect) throws TransportException { // TreeVNC handling int dataLen = getZrleLength(rect, reader); + reader.reset(); if (rfb.hasViewer()) { - reader.reset(); ZRLEDecoder decoder = new ZRLEDecoder(); if (rfb.isRoot()) { byte[] bytes = new byte[rect.width * rect.height * renderer.getBytesPerPixel()]; @@ -39,7 +39,7 @@ return; } } - reader.skip(dataLen); + rfb.readSendData(dataLen, reader, null); } private int getZrleLength(FramebufferUpdateRectangle rect, Reader reader)