Mercurial > hg > Members > riono > TreeVNC_ja_comment
changeset 321:9637525e57c8
change read initData
author | oc |
---|---|
date | Sat, 31 Jan 2015 00:54:14 +0900 |
parents | a237c7e3b7ca |
children | 345185ef630e |
files | src/main/java/com/glavsoft/rfb/protocol/state/InitState.java |
diffstat | 1 files changed, 0 insertions(+), 24 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/protocol/state/InitState.java Sat Jan 31 00:11:15 2015 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/state/InitState.java Sat Jan 31 00:54:14 2015 +0900 @@ -57,10 +57,6 @@ */ public class InitState extends ProtocolState { - private int singleWidth; - private int singleHeight; - private byte[] originalInitData; - public InitState(ProtocolContext context) { super(context); } @@ -74,31 +70,11 @@ protected void clientAndServerInit() throws TransportException { ServerInitMessage serverInitMessage = getServerInitMessage(); - - if (super.rfb.filterSingleDisplay) { - singleWidth = super.rfb.getSingleWidth(); - singleHeight = super.rfb.getSingleHeight(); - originalInitData = super.rfb.createOriginalInitData(singleWidth, singleHeight, serverInitMessage.getName()); - ProtocolSettings settings = context.getSettings(); - settings.enableAllEncodingCaps(); - completeContextData(serverInitMessage, originalInitData); - } else { ProtocolSettings settings = context.getSettings(); settings.enableAllEncodingCaps(); completeContextData(serverInitMessage); -// super.rfb.setSingleDisplaySize(serverInitMessage.getFrameBufferWidth(), serverInitMessage.getFrameBufferHeight()); - } } - public void completeContextData(ServerInitMessage serverInitMessage, byte[] originalInitData) { - context.setPixelFormat(serverInitMessage.getPixelFormat()); - context.setFbWidth(serverInitMessage.getFrameBufferWidth()); - context.setFbHeight(serverInitMessage.getFrameBufferHeight()); - context.setRemoteDesktopName(serverInitMessage.getName()); - context.setInitData(originalInitData); - } - - public void completeContextData(ServerInitMessage serverInitMessage) { context.setPixelFormat(serverInitMessage.getPixelFormat()); context.setFbWidth(serverInitMessage.getFrameBufferWidth());