Mercurial > hg > Members > riono > TreeVNC_ja_comment
changeset 269:05f59c18cdca
fix --filterSingleDisplay option
author | oc |
---|---|
date | Tue, 09 Dec 2014 11:08:32 +0900 |
parents | 4a0c97cfb774 |
children | 2d934eee4f4b |
files | src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java |
diffstat | 2 files changed, 4 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Tue Dec 09 11:05:09 2014 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Tue Dec 09 11:08:32 2014 +0900 @@ -252,10 +252,8 @@ if (decoder != null) { decoder.decode(reader, renderer, rect); // TreeVNC processing here if(!(rfb.getCuiVersion())) { - if (rfb.filterSingleDisplay) { - if (rect.x < 1920) - return; - } + if (rfb.filterSingleDisplay && rect.x < 1920) + return; repaintController.repaintBitmap(rect); } } else if (rect.getEncodingType() == EncodingType.RICH_CURSOR) {
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Tue Dec 09 11:05:09 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Tue Dec 09 11:08:32 2014 +0900 @@ -623,10 +623,8 @@ bufs.addFirst(blen); bufs.addFirst(header); addSerialNumber(bufs); - if (filterSingleDisplay) { - if (rect.x < 1920) - return; - } + if (filterSingleDisplay && rect.x < 1920) + return; multicastqueue.put(bufs); } catch (DataFormatException e) { throw new TransportException(e);