diff src/viewer_swing/java/com/glavsoft/viewer/Viewer.java @ 441:cee43ceac9b3

send thatscreen position INIT_DATA
author one
date Thu, 16 Jun 2016 21:08:19 +0900
parents f6a828dd37b0
children 344a35b7c47f
line wrap: on
line diff
--- a/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java	Thu Jun 16 20:35:44 2016 +0900
+++ b/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java	Thu Jun 16 21:08:19 2016 +0900
@@ -339,7 +339,7 @@
     public void changeToDirectConnectedServer(String hostName, Reader is, Writer os, int x, int y, int width, int height, int scale) {
         final ConnectionPresenter connectionPresenter = createNewConnectionPresenter(hostName, (short) -1, x, y, width, height, scale);
         connectionPresenter.startVNCConnection(this, true, is, os);
-    };
+    }
 
     private ConnectionPresenter createNewConnectionPresenter(String hostName, short newVNCServerId, int x, int y, int width, int height, int scale) {
         final boolean hasJsch = checkJsch();
@@ -509,7 +509,7 @@
     public void setFitScreen() {
         SwingViewerWindow v = connectionPresenter.getViewer();
         if (v != null) {
-            v.zoomToFit();
+            v.fitScreen();
         }
     }