Mercurial > hg > Applications > TreeVNC
diff src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java @ 359:62a6c779fd7f
remove function about catch next display size
author | oc |
---|---|
date | Tue, 10 Mar 2015 12:20:44 +0900 |
parents | 59b1ef1b0a89 |
children | c43593064805 |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Tue Mar 03 17:58:41 2015 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Tue Mar 10 12:20:44 2015 +0900 @@ -70,13 +70,6 @@ private long checkCounter = 0; public int numberOfRectangles = 0; private Timer timer = null; - private int singleWidth; - private int singleHeight; - private int nextWidth; - private int nextHeight; - private boolean isHiDPI = false; - private int hiDPIWidth; - private int hiDPIHeight; public ReceiverTask(Reader reader, IRepaintController repaintController, ClipboardController clipboardController, @@ -121,16 +114,9 @@ } }, 0, 100); } - if(rfb.filterSingleDisplay) { - singleWidth = rfb.getSingleWidth(); - nextWidth = rfb.getNextWidth(); - isHiDPI = rfb.setHiDPI(singleWidth, singleHeight, nextWidth); - } } } - - @Override public void run() { isRunning = true; @@ -253,17 +239,7 @@ try { decoder.decode(reader, renderer, rect); // TreeVNC processing here if (rfb.getCuiVersion()) continue; - if (rfb.filterSingleDisplay) { - if (!isHiDPI) { - if (rect.x >= rfb.getSingleWidth()) { - continue; - } - } else { - if (rect.x >= rfb.getHiDPIWidth()) { - continue; - } - } - } + if (rfb.filterSingleDisplay && rect.x >= rfb.getSingleWidth()) continue; repaintController.repaintBitmap(rect); } catch (Exception e) { throw e;