Mercurial > hg > Applications > TreeVNC
changeset 190:6aa1c0f4ab2e
fix readSendData.
author | oc |
---|---|
date | Wed, 25 Jun 2014 19:19:17 +0900 |
parents | f381159e38f3 |
children | 971b4ea361e8 |
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 Wed Jun 25 19:09:27 2014 +0900 +++ b/src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEESender.java Wed Jun 25 19:19:17 2014 +0900 @@ -23,11 +23,11 @@ FramebufferUpdateRectangle rect) throws TransportException { // TreeVNC handling int dataLen = getZrleLength(rect, reader); + byte[] bytes = new byte[rect.width * rect.height * renderer.getBytesPerPixel()]; reader.reset(); if (rfb.hasViewer()) { ZRLEDecoder decoder = new ZRLEDecoder(); if (rfb.isRoot()) { - byte[] bytes = new byte[rect.width * rect.height * renderer.getBytesPerPixel()]; rfb.readSendData(dataLen, reader, bytes); decoder.decode1(renderer, rect, bytes, 0); return; @@ -39,7 +39,7 @@ return; } } - rfb.readSendData(dataLen, reader, null); + rfb.readSendData(dataLen, reader, bytes); } private int getZrleLength(FramebufferUpdateRectangle rect, Reader reader)