Mercurial > hg > Applications > TreeVNC
changeset 250:45cb40bf0d74
put framebufferUpdate size
author | oc |
---|---|
date | Tue, 04 Nov 2014 04:21:56 +0900 |
parents | 6ce5b8dd4525 |
children | 4a89a92becee |
files | TreeVNC.iml src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java |
diffstat | 2 files changed, 33 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TreeVNC.iml Tue Nov 04 04:21:56 2014 +0900 @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="2.7.2" type="JAVA_MODULE" version="4"> + <component name="NewModuleRootManager" inherit-compiler-output="false"> + <output url="file://$MODULE_DIR$/build/classes/main" /> + <output-test url="file://$MODULE_DIR$/build/classes/test" /> + <exclude-output /> + <content url="file://$MODULE_DIR$"> + <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> + <sourceFolder url="file://$MODULE_DIR$/src/viewerSwing/java" isTestSource="false" /> + <sourceFolder url="file://$MODULE_DIR$/src/viewer_swing/java" isTestSource="false" /> + <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" /> + <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" /> + <sourceFolder url="file://$MODULE_DIR$/src/viewerSwing/resources" type="java-resource" /> + <sourceFolder url="file://$MODULE_DIR$/src/viewer_swing/resources" type="java-resource" /> + <sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" /> + <excludeFolder url="file://$MODULE_DIR$/.gradle" /> + <excludeFolder url="file://$MODULE_DIR$/build" /> + </content> + <orderEntry type="inheritedJdk" /> + <orderEntry type="sourceFolder" forTests="false" /> + <orderEntry type="library" exported="" name="Gradle: jsch-0.1.50" level="project" /> + </component> +</module> +
--- a/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Tue Oct 28 12:50:00 2014 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Tue Nov 04 04:21:56 2014 +0900 @@ -211,7 +211,9 @@ reader.readByte(); // padding this.numberOfRectangles = reader.readUInt16(); - int nor = this.numberOfRectangles; + + if(numberOfRectangles != 1) + System.out.println("numberofrectangle : " + numberOfRectangles); if(rfb.isTreeManager() && firstTime && rfb.checkDelay) { SendCheckDelay sendCheckDelay = new SendCheckDelay(rfb); @@ -220,11 +222,15 @@ this.firstTime = false; } - while (nor-- > 0) { + while (numberOfRectangles-- > 0) { FramebufferUpdateRectangle rect = new FramebufferUpdateRectangle(); rect.fill(reader); + + if(rfb.isTreeManager()) + System.out.println("width * height : " + rect.width * rect.height); + Decoder decoder = decoders.getDecoderByType(rect.getEncodingType()); - logger.finest(rect.toString() + (0 == nor ? "\n---" : "")); + logger.finest(rect.toString() + (0 == numberOfRectangles ? "\n---" : "")); if (decoder != null) { decoder.decode(reader, renderer, rect); // TreeVNC processing here if(!(rfb.getCuiVersion()))