Mercurial > hg > Members > riono > TreeVNC_ja_comment
changeset 362:1eaaa650b4d0
setFitScreen in ReceiverTask
author | one@firefly.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Thu, 06 Aug 2015 20:11:28 +0900 |
parents | df063169b0b1 |
children | bc5624e3e9c5 101a32eb084f |
files | src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Thu Aug 06 20:01:11 2015 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Thu Aug 06 20:11:28 2015 +0900 @@ -304,6 +304,9 @@ if (rect.getEncodingType() == EncodingType.INIT_DATA) { repaintController.setVisible(visible); } + if (rfb.hasViewer()){ + rfb.getViewer().setFitScreen(); + } context.sendMessage(new FramebufferUpdateRequestMessage(0, 0, rect.width, rect.height, false)); // repaintController.repaintCursor(); } else if (rect.getEncodingType() == EncodingType.CHECK_DELAY) {