Mercurial > hg > Applications > tvnjviewer
changeset 21:966878ff1227
not appear NEW TightVNC Connection window if first argument equal "localhost"
author | sugi |
---|---|
date | Thu, 06 Nov 2014 19:32:15 +0900 |
parents | 419ac2f759d5 |
children | 45176f732171 |
files | src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEDecoder.java src/viewer_swing/java/com/glavsoft/viewer/Viewer.java |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEDecoder.java Wed Nov 05 22:46:57 2014 +0900 +++ b/src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEDecoder.java Thu Nov 06 19:32:15 2014 +0900 @@ -47,7 +47,6 @@ if (0 == zippedLength) return; int length = rect.width * rect.height * renderer.getBytesPerPixel(); byte[] bytes = unzip(reader, zippedLength, length); - System.out.println(bytes.length); AliceVNCMessage message = new AliceVNCMessage(); message.setRectangle(rect);
--- a/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java Wed Nov 05 22:46:57 2014 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java Thu Nov 06 19:32:15 2014 +0900 @@ -94,11 +94,18 @@ setLoggingLevel(parser.isSet(ParametersHandler.ARG_VERBOSE) ? Level.FINE : parser.isSet(ParametersHandler.ARG_VERBOSE_MORE) ? Level.FINER : Level.INFO); - + paramsMask = ParametersHandler.completeSettingsFromCLI(parser, connectionParams, settings, uiSettings); passwordFromParams = parser.getValueFor(ParametersHandler.ARG_PASSWORD); logger.info("TightVNC Viewer version " + ver()); isApplet = false; + + if (parser.isSetPlainOptions()) { + if ("localhost".equals(parser.getPlainOptionAt(0))) { + connectionParams.hostName = "localhost"; + isApplet = true; + }; + } } private void setLoggingLevel(Level levelToSet) {