Mercurial > hg > Applications > TreeVNC
changeset 597:e7748e46acad
fix phase 2 move
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 14 Feb 2020 09:41:44 +0900 |
parents | 2904bc59ac8e |
children | 27449453ebde |
files | src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEDecoder.java src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEDecoder.java Fri Feb 14 03:51:22 2020 +0900 +++ b/src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEDecoder.java Fri Feb 14 09:41:44 2020 +0900 @@ -227,9 +227,9 @@ public void moveNext() { // previous rectangle is finished, make next header space and copy already compressed part - System.arraycopy(c1.array(),prevC1LineOffset,c1.array(),c1.position()-prevC1LineOffset,16); + System.arraycopy(c1.array(),prevC1LineOffset,c1.array(),prevC1LineOffset+16,c1.position()-prevC1LineOffset); c1.position(c1.position()+16); - prevC1Offset = c1.position(); + prevC1Offset = prevC1LineOffset+16; } private void flushDeflator() {
--- a/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Fri Feb 14 03:51:22 2020 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Fri Feb 14 09:41:44 2020 +0900 @@ -389,7 +389,7 @@ int n = numberOfRectangeles; while(n-- > 0 ) { rect.fill(in); - System.out.println("check rect " + rect); + System.out.println("check rect No." + n + " = " + rect); if (rect.getEncodingType() == EncodingType.ZRLEE) { int length = rect.width * rect.height * renderer.getBytesPerPixel(); int zippedLength = (int) in.readUInt32();