changeset 9:3c0f262384dc

send EncodingType.DESKTOP_SIZE AliceVNCMessage
author YU
date Tue, 23 Sep 2014 16:15:59 +0900
parents 136ee08cb788
children ba82199e3b70
files src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java	Thu Sep 18 21:11:51 2014 +0900
+++ b/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java	Tue Sep 23 16:15:59 2014 +0900
@@ -24,6 +24,8 @@
 
 package com.glavsoft.rfb.protocol;
 
+import alice.datasegment.DataSegment;
+
 import com.glavsoft.drawing.Renderer;
 import com.glavsoft.exceptions.CommonException;
 import com.glavsoft.exceptions.ProtocolException;
@@ -34,6 +36,7 @@
 import com.glavsoft.rfb.client.SetPixelFormatMessage;
 import com.glavsoft.rfb.encoding.EncodingType;
 import com.glavsoft.rfb.encoding.PixelFormat;
+import com.glavsoft.rfb.encoding.decoder.AliceVNCMessage;
 import com.glavsoft.rfb.encoding.decoder.Decoder;
 import com.glavsoft.rfb.encoding.decoder.DecodersContainer;
 import com.glavsoft.rfb.encoding.decoder.FramebufferUpdateRectangle;
@@ -177,6 +180,11 @@
 					renderer = repaintController.createRenderer(reader, rect.width, rect.height,
 							context.getPixelFormat());
 				}
+				AliceVNCMessage message = new AliceVNCMessage();
+				message.setRectangle(rect);
+				message.setPixelFormat(context.getPixelFormat());
+				DataSegment.getLocal().put("aliceVNCMessage", message);
+				
 				context.sendMessage(new FramebufferUpdateRequestMessage(0, 0, rect.width, rect.height, false));
 //				repaintController.repaintCursor();
 			} else