Mercurial > hg > Applications > TreeVNC
changeset 589:ef5033b06019
fix compress length in flush
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 12 Feb 2020 21:54:40 +0900 |
parents | f01eef88010f |
children | 3accb09e430c |
files | src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEDecoder.java src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEDecoder.java Sat Feb 08 10:34:46 2020 +0900 +++ b/src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEDecoder.java Wed Feb 12 21:54:40 2020 +0900 @@ -250,7 +250,7 @@ c1.putShort(prevC1Offset - 12, (short) rect.width); c1.putShort(prevC1Offset - 10, (short) rect.height); c1.putInt(prevC1Offset - 8, EncodingType.ZRLEE.getId()); - c1.putInt(prevC1Offset - 4, c1.position() - prevC1Offset - 12); // data length + c1.putInt(prevC1Offset - 4, c1.position() - prevC1Offset ); // data length c1.putShort(2, (short) (c1.getShort(2) + 1)); // increment rectangle count prevC1Offset = c1.position(); }
--- a/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Sat Feb 08 10:34:46 2020 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Wed Feb 12 21:54:40 2020 +0900 @@ -418,7 +418,7 @@ } dump("in ",bytes,flushOffset,8); dump("... ",bytes,flushEnd-8,8); System.out.println(); - dump("out ",buf.array(),buf.position(),8); dump(" ",buf.array(),buf.limit()-8,8); + dump("out ",buf.array(),buf.position(),8); dump("... ",buf.array(),buf.limit()-8,8); System.out.println(); }