Mercurial > hg > Applications > TightVNC_orginal
changeset 49:b0c7fad4c695
framebufferupdate : incremental = false
author | one |
---|---|
date | Tue, 18 Jun 2013 19:15:21 +0900 |
parents | 6ebe870da138 |
children | 225e3873d75f |
files | dist/tightvnc-jviewer-2.5.0/tightvnc-jviewer.jar src/main/java/com/glavsoft/rfb/protocol/Protocol.java src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java src/main/java/com/glavsoft/rfb/protocol/state/InitState.java src/main/java/jp/ac/u_ryukyu/treevnc/server/VncProxyService.java src/main/java/jp/ac/u_ryukyu/treevnc/test/ThreadTest.java |
diffstat | 6 files changed, 14 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/protocol/Protocol.java Tue Dec 18 17:56:49 2012 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/Protocol.java Tue Jun 18 19:15:21 2013 +0900 @@ -117,16 +117,19 @@ @Override public int getFbWidth() { + //return 1000; return fbWidth; } @Override public void setFbWidth(int fbWidth) { + // this.fbWidth = 1002; this.fbWidth = fbWidth; } @Override public int getFbHeight() { + //return 500; return fbHeight; } @@ -142,7 +145,8 @@ @Override public void setFbHeight(int fbHeight) { - this.fbHeight = fbHeight; + // this.fbHeight = 502; + this.fbHeight = fbHeight; } @Override @@ -261,7 +265,8 @@ @Override public void sendRefreshMessage() { - sendMessage(new FramebufferUpdateRequestMessage(0, 0, fbWidth, fbHeight, false)); + // sendMessage(new FramebufferUpdateRequestMessage(0, 0, fbWidth, fbHeight, false)); + sendMessage(new FramebufferUpdateRequestMessage(0, 0, 1000, 500, false)); logger.fine("sent: full FB Refresh"); }
--- a/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Tue Dec 18 17:56:49 2012 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Tue Jun 18 19:15:21 2013 +0900 @@ -86,7 +86,7 @@ renderer = repaintController.createRenderer(reader, context.getFbWidth(), context.getFbHeight(), context.getPixelFormat()); fullscreenFbUpdateIncrementalRequest = - new FramebufferUpdateRequestMessage(0, 0, context.getFbWidth(), context.getFbHeight(), true); + new FramebufferUpdateRequestMessage(0, 0, context.getFbWidth(), context.getFbHeight(), false); } @Override
--- a/src/main/java/com/glavsoft/rfb/protocol/state/InitState.java Tue Dec 18 17:56:49 2012 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/state/InitState.java Tue Jun 18 19:15:21 2013 +0900 @@ -42,16 +42,16 @@ * to share the desktop by leaving other clients connected, or give exclusive * access to this client by disconnecting all other clients. * - * 1 - U8 - shared-flag + * 1 - U8 - shared-���ag * - * Shared-flag is non-zero (true) if the server should try to share the desktop by leaving + * Shared-���ag is non-zero (true) if the server should try to share the desktop by leaving * other clients connected, zero (false) if it should give exclusive access to this client by * disconnecting all other clients. * * ServerInit * * After receiving the ClientInit message, the server sends a ServerInit message. This - * tells the client the width and height of the server’s framebuffer, its pixel format and the + * tells the client the width and height of the server���s framebuffer, its pixel format and the * name associated with the desktop. */ public class InitState extends ProtocolState {
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/server/VncProxyService.java Tue Dec 18 17:56:49 2012 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/server/VncProxyService.java Tue Jun 18 19:15:21 2013 +0900 @@ -143,7 +143,7 @@ // getHostData(); if (forceReconnection) { connectionManager.showReconnectDialog("Connection lost", - reconnectionReason); + prevVps.reconnectionReason); forceReconnection = false; } tryAgain = true; @@ -259,18 +259,7 @@ printUsage(parser.optionsUsage()); System.exit(0); } - initProxy(parser); - if (mainArgs.length != 0) { - for (int i = 0; i < argv.length; i++) { - setArguments(mainArgs); - // write later - } - } else { - // getHostData(); - } - // SwingUtilities.invokeLater(myClient); - run(); - createConnectionAndStart(); + initProxy1(argv, mainArgs, parser); } @Override @@ -356,7 +345,6 @@ DataOutputStream os = new DataOutputStream( echoSocket.getOutputStream()); os.writeBytes("reconnection\n"); - System.out.println("port ==== " + port); os.writeBytes(port + "\n"); os.close(); }