Mercurial > hg > Applications > tvnjviewer
changeset 1:7bee64adbbfd
put initMessage Local DataSegment
author | YU |
---|---|
date | Sat, 13 Sep 2014 05:29:33 +0900 |
parents | daa24f8a557b |
children | 960c7717ad0d |
files | src/main/java/com/glavsoft/rfb/protocol/state/InitState.java |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/protocol/state/InitState.java Thu Sep 11 07:30:03 2014 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/state/InitState.java Sat Sep 13 05:29:33 2014 +0900 @@ -24,6 +24,8 @@ package com.glavsoft.rfb.protocol.state; +import alice.datasegment.DataSegment; + import com.glavsoft.exceptions.AuthenticationFailedException; import com.glavsoft.exceptions.FatalException; import com.glavsoft.exceptions.TransportException; @@ -77,6 +79,7 @@ } protected void completeContextData(ServerInitMessage serverInitMessage) { + DataSegment.getLocal().put("ServerInitMessage", serverInitMessage); context.setPixelFormat(serverInitMessage.getPixelFormat()); context.setFbWidth(serverInitMessage.getFrameBufferWidth()); context.setFbHeight(serverInitMessage.getFrameBufferHeight());