Mercurial > hg > Members > riono > TreeVNC_ja_comment
changeset 350:7050b41329c6
remove original InitData
author | oc |
---|---|
date | Thu, 12 Feb 2015 17:01:23 +0900 (2015-02-12) |
parents | cbd794a31eee |
children | 024ac6e457f4 |
files | src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java src/main/java/jp/ac/u_ryukyu/treevnc/TreeVncCommandChannelListener.java |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Thu Feb 12 16:54:23 2015 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/TreeRFBProto.java Thu Feb 12 17:01:23 2015 +0900 @@ -544,7 +544,8 @@ if (filterSingleDisplay) { this.originalInitData = createOriginalInitData(singleWidth, singleHeight, context.getRemoteDesktopName()); - desktopSize.add(new ChengeDesktopSize(singleWidth, singleHeight, EncodingType.INIT_DATA, originalInitData, id).getMessage()); +// desktopSize.add(new ChengeDesktopSize(singleWidth, singleHeight, EncodingType.INIT_DATA, originalInitData, id).getMessage()); + desktopSize.add(new ChengeDesktopSize(width, height, EncodingType.INIT_DATA, context.getInitData(), id).getMessage()); } else { desktopSize.add(new ChengeDesktopSize(width, height, EncodingType.INIT_DATA, context.getInitData(), id).getMessage()); }
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/TreeVncCommandChannelListener.java Thu Feb 12 16:54:23 2015 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/TreeVncCommandChannelListener.java Thu Feb 12 17:01:23 2015 +0900 @@ -226,7 +226,8 @@ int width = rfb.getSingleWidth(); int height = rfb.getSingleHeight(); byte[] initData = createOriginalInitData(width, height, context.getRemoteDesktopName()); - os.write(initData); +// os.write(initData); + os.write(context.getInitData()); } else { os.write(context.getInitData()); }