Mercurial > hg > Applications > TreeVNC
comparison src/main/java/com/glavsoft/rfb/protocol/state/InitState.java @ 311:e6a5f3100b6a
first set single display size from initData
author | oc |
---|---|
date | Fri, 23 Jan 2015 18:20:54 +0900 |
parents | d1d6c7306281 |
children | a237c7e3b7ca |
comparison
equal
deleted
inserted
replaced
310:9b70bfdef8bd | 311:e6a5f3100b6a |
---|---|
81 originalInitData = super.rfb.createOriginalInitData(singleWidth, singleHeight, serverInitMessage.getName()); | 81 originalInitData = super.rfb.createOriginalInitData(singleWidth, singleHeight, serverInitMessage.getName()); |
82 ProtocolSettings settings = context.getSettings(); | 82 ProtocolSettings settings = context.getSettings(); |
83 settings.enableAllEncodingCaps(); | 83 settings.enableAllEncodingCaps(); |
84 completeContextData(serverInitMessage, originalInitData); | 84 completeContextData(serverInitMessage, originalInitData); |
85 } else { | 85 } else { |
86 | |
87 ProtocolSettings settings = context.getSettings(); | 86 ProtocolSettings settings = context.getSettings(); |
88 settings.enableAllEncodingCaps(); | 87 settings.enableAllEncodingCaps(); |
89 completeContextData(serverInitMessage); | 88 completeContextData(serverInitMessage); |
89 super.rfb.setSingleDisplaySize(serverInitMessage.getFrameBufferWidth(), serverInitMessage.getFrameBufferHeight()); | |
90 } | 90 } |
91 } | 91 } |
92 | 92 |
93 public void completeContextData(ServerInitMessage serverInitMessage, byte[] originalInitData) { | 93 public void completeContextData(ServerInitMessage serverInitMessage, byte[] originalInitData) { |
94 context.setPixelFormat(serverInitMessage.getPixelFormat()); | 94 context.setPixelFormat(serverInitMessage.getPixelFormat()); |