Mercurial > hg > Applications > TreeVNC
changeset 617:33ee6facf4ee
remove debug message
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 22 Feb 2020 11:57:26 +0900 |
parents | 69fb13d5f9ec |
children | 0daf3ecab9d1 |
files | src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEDecoder.java src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java |
diffstat | 2 files changed, 10 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEDecoder.java Sat Feb 22 11:46:19 2020 +0900 +++ b/src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEDecoder.java Sat Feb 22 11:57:26 2020 +0900 @@ -55,6 +55,7 @@ private int prevoffset; private Deflater deflater; private int flushOffset; + private final boolean wifiblockingDebug = false; /** * Multicast framebufferUpdate to children. @@ -99,9 +100,9 @@ deflater.setInput(bytes, 0,(int) prevoffset); deflater.deflate(c1); flushMuticast(rfb, bytes); - System.out.println("skiping "+rect); + if (wifiblockingDebug) System.out.println("skiping "+rect); } else - System.out.println("blocking "+rect); + if (wifiblockingDebug) System.out.println("blocking "+rect); return; } @@ -276,11 +277,13 @@ * update position paramater * send muticast pacate if nessesally */ - private void flushRectangle(FramebufferUpdateRectangle rect,int pos,String where) { + private void flushRectangle(FramebufferUpdateRectangle rect,int pos,String where) throws TransportException { if (rect.width==0) return; - System.out.println("sending broadcast" + rect + where); - if (rect.y >= this.rect.y+this.rect.height || rect.height==0) - System.out.println("over y broadcast" + this.rect); + if (wifiblockingDebug) System.out.println("sending broadcast" + rect + where); + if (rect.y >= this.rect.y+this.rect.height || rect.height==0) { + if (wifiblockingDebug) System.out.println("over y broadcast" + this.rect); + throw new TransportException("over y broadcast" + this.rect,null); + } c1.putShort(prevC1Offset - 16, (short) rect.x); c1.putShort(prevC1Offset - 14, (short) rect.y); c1.putShort(prevC1Offset - 12, (short) rect.width);
--- a/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Sat Feb 22 11:46:19 2020 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Sat Feb 22 11:57:26 2020 +0900 @@ -450,7 +450,7 @@ Decoder decoder = zdecoder; while (numberOfRectangeles-- > 0) { rect.fill(in); - System.out.println("bloadcast rectangle "+rect); + // System.out.println("broadcast rectangle "+rect); if (rect.getEncodingType() == EncodingType.ZRLEE) { decoder.decode(in,renderer,rect); if (rfb.getCuiVersion()) continue;