Mercurial > hg > Applications > TreeVNC
changeset 284:3d7ecf31037b
small fix
author | oc |
---|---|
date | Sun, 11 Jan 2015 07:22:07 +0900 |
parents | d18c3f901be7 |
children | b8e8d84c86ec |
files | src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Sun Jan 11 05:12:05 2015 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Sun Jan 11 07:22:07 2015 +0900 @@ -872,7 +872,8 @@ if (viewer.getRfb().isTreeManager()) { try { - viewer.getRfb().changeVNCServer(viewer, "127.0.0.1", 1980, 1090, viewer.getRfb().getId()); + viewer.getRfb().changeVNCServer(viewer, "127.0.0.1", (int) rectangles.get(leftScreenNumber).getWidth(), (int) rectangles.get(leftScreenNumber).getHeight(), viewer.getRfb().getId()); + context.sendMessage(new RequestSingleDisplayWidth()); } catch (Exception e1) { System.out.println("can't change server :" + e1.getMessage()); } @@ -880,7 +881,8 @@ } String adr = viewer.getRfb().getMyAddress(); context.sendMessage(new ScreenChangeRequest(adr, viewer.getRfb().getId(), (int) rectangles.get(leftScreenNumber).getWidth(), (int) rectangles.get(leftScreenNumber).getHeight())); - } + context.sendMessage(new RequestSingleDisplayWidth()); + } }); kbdButtons.add(screenButton); @@ -891,11 +893,13 @@ // adjustHdSizeButton.setSelected(false); if (viewer.getRfb().isTreeManager()) { System.out.println(viewer.getRfb().singleWidth); +// uiSettings.adjustHdSize(viewer.getRfb().singleWidth); return; } System.out.println(viewer.getRfb().singleWidth); context.sendMessage(new RequestSingleDisplayWidth()); -// uiSettings.adjustHdSize(singleWidth); + System.out.println(viewer.getRfb().singleWidth); +// uiSettings.adjustHdSize(viewer.getRfb().singleWidth); } }); kbdButtons.add(adjustHdSizeButton);