Mercurial > hg > Applications > TreeVNC
changeset 270:2d934eee4f4b
small fix
author | oc |
---|---|
date | Tue, 09 Dec 2014 12:48:21 +0900 |
parents | 05f59c18cdca |
children | 13a809ce1212 |
files | src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java |
diffstat | 2 files changed, 14 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Tue Dec 09 11:08:32 2014 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Tue Dec 09 12:48:21 2014 +0900 @@ -252,9 +252,13 @@ if (decoder != null) { decoder.decode(reader, renderer, rect); // TreeVNC processing here if(!(rfb.getCuiVersion())) { - if (rfb.filterSingleDisplay && rect.x < 1920) - return; - repaintController.repaintBitmap(rect); + if (rfb.filterSingleDisplay) { + if (rect.x < 1920) { + repaintController.repaintBitmap(rect); + } + } else { + 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 11:08:32 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Tue Dec 09 12:48:21 2014 +0900 @@ -623,9 +623,13 @@ bufs.addFirst(blen); bufs.addFirst(header); addSerialNumber(bufs); - if (filterSingleDisplay && rect.x < 1920) - return; - multicastqueue.put(bufs); + if (filterSingleDisplay) { + if (rect.x < 1920) { + multicastqueue.put(bufs); + } + } else { + multicastqueue.put(bufs); + } } catch (DataFormatException e) { throw new TransportException(e); } catch (IOException e) {