Mercurial > hg > Members > riono > TreeVNC_ja_comment
changeset 282:6b232caa07fb
fix setting rfb.singleWidth
author | oc |
---|---|
date | Sun, 11 Jan 2015 04:14:21 +0900 |
parents | 16d3584ae7a0 |
children | d18c3f901be7 |
files | src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java |
diffstat | 2 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Sun Jan 11 03:55:03 2015 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Sun Jan 11 04:14:21 2015 +0900 @@ -78,8 +78,6 @@ public int singleWidth = 0; - - public TreeRFBProto(boolean isTreeManager) { rThread = new RequestScreenThread(this); nets.setMyRfb(this); @@ -728,7 +726,6 @@ this.frameSizeWidth = width; this.frameSizeHeight = height; - this.singleWidth = width; // stop reader stop stopReceiverTask();
--- a/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Sun Jan 11 03:55:03 2015 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Sun Jan 11 04:14:21 2015 +0900 @@ -87,7 +87,6 @@ private Protocol workingProtocol; public int width; public int height; - private int singleWidth; private boolean isZoomToFitSelected; private List<JComponent> kbdButtons; @@ -869,7 +868,7 @@ viewer.setFrameSize(size.width, size.height); int leftScreenNumber = 0; int rightScreenNumber = 1; - singleWidth = (int) rectangles.get(leftScreenNumber).getWidth(); + viewer.getRfb().singleWidth = (int) rectangles.get(leftScreenNumber).getWidth(); if (viewer.getRfb().isTreeManager()) { try {