diff src/viewer_swing/java/com/glavsoft/viewer/TreeViewer.java @ 273:5bab82abcc4f

fix --fixSize option name and input option arguments at console.
author oc
date Thu, 18 Dec 2014 01:23:26 +0900 (2014-12-17)
parents 13a809ce1212
children d1ceb4b7097a
line wrap: on
line diff
--- a/src/viewer_swing/java/com/glavsoft/viewer/TreeViewer.java	Mon Dec 15 13:48:19 2014 +0900
+++ b/src/viewer_swing/java/com/glavsoft/viewer/TreeViewer.java	Thu Dec 18 01:23:26 2014 +0900
@@ -101,11 +101,11 @@
                 permitChangeScreen = false;
             } else if ("--noScreenChange".equals(args[i])) {
                 permitChangeScreen = false;
-            } else if ("--fixingSize".equals(args[i])) {
+            } else if ("--fixSize".equals(args[i])) {
                 // retina display too large for TreeVNC.
                 // restrict display size.
-                fixingSizeWidth = 1280;
-                fixingSizeHeight = 800;
+                fixingSizeWidth = Integer.parseInt(args[++i]);
+                fixingSizeHeight = Integer.parseInt(args[++i]);
                 fixingSizeDisplay = true;
             } else if ("--filterSingleDisplay".equals(args[i])) {
                 // retina display too large for TreeVNC.