Mercurial > hg > Applications > TreeVNC
changeset 276:0309ea3a4f4e
fix option --filterSingleDisplay, -p version.
author | oc |
---|---|
date | Tue, 06 Jan 2015 19:29:34 +0900 |
parents | 0f9b3de45fb2 |
children | 2d39a1f9558d |
files | src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Tue Jan 06 19:07:27 2015 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Tue Jan 06 19:29:34 2015 +0900 @@ -77,8 +77,6 @@ private boolean firstTime = true; public int numberOfRectangles = 0; private Timer timer = null; - int singleWidth = 0; - public ReceiverTask(Reader reader, IRepaintController repaintController, ClipboardController clipboardController, @@ -236,13 +234,17 @@ } }, 0, 100); } - this.firstTime = false; } while (numberOfRectangles-- > 0) { FramebufferUpdateRectangle rect = new FramebufferUpdateRectangle(); rect.fill(reader); + if(rfb.singleWidth == 0 && firstTime) { + rfb.singleWidth = rect.width; + this.firstTime = false; + } + long time = System.currentTimeMillis(); if(rfb.isTreeManager() && rfb.checkDelay) System.out.println(time + " : size : " + rect.width * rect.height);