Mercurial > hg > Members > riono > TreeVNC_ja_comment
changeset 189:f381159e38f3
fix readSendData.
author | oc |
---|---|
date | Wed, 25 Jun 2014 19:09:27 +0900 |
parents | f176bffcdc4a |
children | 6aa1c0f4ab2e |
files | src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEESender.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)