# HG changeset patch # User one@firefly.cr.ie.u-ryukyu.ac.jp # Date 1438859488 -32400 # Node ID 1eaaa650b4d043704cc9a2a44299758e5a3c80b4 # Parent df063169b0b19ca40db8865572632b6004b787e7 setFitScreen in ReceiverTask diff -r df063169b0b1 -r 1eaaa650b4d0 src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java --- 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) {