Mercurial > hg > Members > riono > TreeVNC_ja_comment
changeset 253:4049f353f753
fixed display size.
author | oc |
---|---|
date | Mon, 17 Nov 2014 04:58:02 +0900 |
parents | eee9a8f53dbc |
children | 5c73114b38b1 |
files | src/main/java/com/glavsoft/rfb/protocol/Protocol.java src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java src/main/java/jp/ac/u_ryukyu/treevnc/SendCheckDelay.java |
diffstat | 3 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/protocol/Protocol.java Tue Nov 11 10:19:57 2014 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/Protocol.java Mon Nov 17 04:58:02 2014 +0900 @@ -281,7 +281,7 @@ @Override public void sendRefreshMessage() { - sendMessage(new FramebufferUpdateRequestMessage(0, 0, fbWidth, fbHeight, false)); + sendMessage(new FramebufferUpdateRequestMessage(0, 0, 1920, 1080, false)); logger.fine("sent: full FB Refresh"); }
--- a/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Tue Nov 11 10:19:57 2014 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Mon Nov 17 04:58:02 2014 +0900 @@ -94,7 +94,7 @@ if(!rfb.getCuiVersion()) renderer = repaintController.createRenderer(reader, context.getFbWidth(), context.getFbHeight(),context.getPixelFormat()); - fullscreenFbUpdateIncrementalRequest = new FramebufferUpdateRequestMessage(0, 0, context.getFbWidth(), context.getFbHeight(), true); + fullscreenFbUpdateIncrementalRequest = new FramebufferUpdateRequestMessage(0, 0, 1920, 1080, false); if(rfb.isTreeManager()) { fullscreenFbUpdateIncrementalRequest.sendFullScreenRequest(); connectionFinished(); @@ -245,7 +245,7 @@ repaintController.repaintCursor(); } else if (rect.getEncodingType() == EncodingType.DESKTOP_SIZE || rect.getEncodingType() == EncodingType.INIT_DATA ) { fullscreenFbUpdateIncrementalRequest = - new FramebufferUpdateRequestMessage(0, 0, rect.width, rect.height, true); + new FramebufferUpdateRequestMessage(0, 0, 1920, 1080, false); rfb.setCuiVersion(false); boolean visible = true; if (rect.getEncodingType() == EncodingType.INIT_DATA) { @@ -268,7 +268,7 @@ if (rect.getEncodingType() == EncodingType.INIT_DATA) { repaintController.setVisible(visible); } - context.sendMessage(new FramebufferUpdateRequestMessage(0, 0, rect.width, rect.height, false)); + context.sendMessage(new FramebufferUpdateRequestMessage(0, 0, 1920, 1080, false)); // repaintController.repaintCursor(); } else if (rect.getEncodingType() == EncodingType.CHECK_DELAY) { int checkDelaySize = 24;
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/SendCheckDelay.java Tue Nov 11 10:19:57 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/SendCheckDelay.java Mon Nov 17 04:58:02 2014 +0900 @@ -10,7 +10,7 @@ public class SendCheckDelay implements Runnable { private TreeRFBProto rfb; - + public SendCheckDelay(TreeRFBProto rfb) { this.rfb = rfb; }