Mercurial > hg > Applications > TreeVNC
changeset 570:4fe5db6260dc
fix check method
author | riono |
---|---|
date | Wed, 05 Feb 2020 17:57:50 +0900 |
parents | 6f95d475906b |
children | 1dd4eea9f566 |
files | src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Wed Feb 05 17:10:19 2020 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Wed Feb 05 17:57:50 2020 +0900 @@ -384,8 +384,11 @@ int numberOfRectangeles = in.readInt16(); while (numberOfRectangeles-- > 0) { rect.fill(in); - Decoder decoder = decoders.getDecoderByType(rect.getEncodingType()); - decoder.decode(in,new NullRenderer(context.getPixelFormat().bitsPerPixel/8, context.getFbWidth(), context.getFbHeight(), context.getPixelFormat()),rect); + System.out.println("check rect " + rect); + if (rect.getEncodingType() == EncodingType.ZRLEE) { + Decoder decoder = new ZRLEDecoder(); + decoder.decode(in,new NullRenderer(context.getPixelFormat().bitsPerPixel/8, context.getFbWidth(), context.getFbHeight(), context.getPixelFormat()),rect); + } } } catch (Exception e) { e.printStackTrace();