Mercurial > hg > Applications > TreeVNC
diff src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEDecoder.java @ 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 |
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(); }