Mercurial > hg > Applications > TreeVNC
changeset 445:c2323d1012d4
fit Screen retina fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 17 Jun 2016 15:58:14 +0900 |
parents | 9a938b714c6b |
children | 9ab123ce3d9f |
files | src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Fri Jun 17 10:39:39 2016 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Fri Jun 17 15:58:14 2016 +0900 @@ -930,6 +930,7 @@ // treeeManager may have its parent } if (viewer.getRfb().hasParent()) { + System.out.println("send serverchange to parent"); String adr = viewer.getRfb().getMyAddress(); if (scanPort(adr, ConnectionParams.DEFAULT_RFB_PORT)) { // -1 means request to reverse direct connection socket @@ -995,8 +996,8 @@ final int thatScreenX = presenter.getX(); final int thatScreenY = presenter.getY(); int thatRetinaScale = presenter.getRetinaScale(); - final int thatScreenWidth = presenter.getFrameSizeWidth()* thatRetinaScale; - final int thatScreenHeight = presenter.getFrameSizeHeight()* thatRetinaScale; + final int thatScreenWidth = presenter.getFrameSizeWidth(); + final int thatScreenHeight = presenter.getFrameSizeHeight(); showScreenInfo("that", 0, thatScreenX, thatScreenY, thatScreenWidth, thatScreenHeight, thatRetinaScale); frame.setSize(thisScreenWidth, thisScreenHeight);