diff src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java @ 29:7aee2a8dbe47

add Alice 1.1
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Tue, 29 Sep 2015 13:50:53 +0900
parents f1dc728ffe87
children
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java	Mon Dec 08 15:55:38 2014 +0900
+++ b/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java	Tue Sep 29 13:50:53 2015 +0900
@@ -24,6 +24,7 @@
 
 package com.glavsoft.rfb.protocol;
 
+import alice.daemon.AliceDaemon;
 import alice.datasegment.DataSegment;
 import alice.datasegment.ReceiveData;
 
@@ -68,6 +69,8 @@
 	private PixelFormat pixelFormat;
 	private boolean needSendPixelFormat;
 
+	private AliceDaemon aliceDaemon = new AliceDaemon();
+
 	public ReceiverTask(Reader reader,
 	                    IRepaintController repaintController, ClipboardController clipboardController,
 	                    DecodersContainer decoders, ProtocolContext context) {
@@ -186,10 +189,10 @@
 				message.setRectangle(rect);
 				message.setPixelFormat(context.getPixelFormat());
 
-				ReceiveData rData = new ReceiveData("dummy", false, false);
-                DataSegment.getLocal().put("pixelData", rData, null);
-				rData = new ReceiveData(message, false, false);
-		        DataSegment.getLocal().put("updateRectangle", rData, null);
+				ReceiveData rData = new ReceiveData("dummy");
+                aliceDaemon.dataSegment.getLocal().put("pixelData", rData, false);
+				rData = new ReceiveData(message);
+		        aliceDaemon.dataSegment.getLocal().put("updateRectangle", rData, false);
 
 				context.sendMessage(new FramebufferUpdateRequestMessage(0, 0, rect.width, rect.height, false));
 //				repaintController.repaintCursor();