Mercurial > hg > Members > riono > TreeVNC_ja_comment
changeset 268:4a0c97cfb774
fix --filterSingleDisplay option
author | oc |
---|---|
date | Tue, 09 Dec 2014 11:05:09 +0900 |
parents | 5f697251860b |
children | 05f59c18cdca |
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(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Tue Dec 09 10:50:26 2014 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Tue Dec 09 11:05:09 2014 +0900 @@ -254,8 +254,9 @@ if(!(rfb.getCuiVersion())) { if (rfb.filterSingleDisplay) { if (rect.x < 1920) - repaintController.repaintBitmap(rect); + return; } + repaintController.repaintBitmap(rect); } } else if (rect.getEncodingType() == EncodingType.RICH_CURSOR) { RichCursorDecoder.getInstance().decode(reader, renderer, rect);
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Tue Dec 09 10:50:26 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Tue Dec 09 11:05:09 2014 +0900 @@ -625,8 +625,9 @@ addSerialNumber(bufs); if (filterSingleDisplay) { if (rect.x < 1920) - multicastqueue.put(bufs); + return; } + multicastqueue.put(bufs); } catch (DataFormatException e) { throw new TransportException(e); } catch (IOException e) {