Mercurial > hg > Applications > TreeVNC
diff src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEESender.java @ 500:6609174beafe
fix subencoding
author | oshiro |
---|---|
date | Sun, 17 Feb 2019 17:55:25 +0900 |
parents | 8d95d64c33bf |
children | 1646be890954 |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEESender.java Sat Feb 16 17:31:34 2019 +0900 +++ b/src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEESender.java Sun Feb 17 17:55:25 2019 +0900 @@ -31,7 +31,7 @@ if (rect.getEncodingType() == EncodingType.ZRLE) { // ReadSendData convert ZRLE to ZRLEE // unzipped data in the bytes - byte[] bytes = new byte[rect.x * rect.y * renderer.getBytesPerPixel()]; + byte[] bytes = new byte[rect.width * rect.height * renderer.getBytesPerPixel()]; rfb.readSendData(dataLen, reader, bytes, rect); decoder.decode1(renderer, rect, bytes, 0, rfb); return;