comparison src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEESender.java @ 204:d9d234715853

TreeManager for each interface
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 27 Jun 2014 21:37:20 +0900
parents 6aa1c0f4ab2e
children b31903e5b02d
comparison
equal deleted inserted replaced
203:2f6237fea67e 204:d9d234715853
25 int dataLen = getZrleLength(rect, reader); 25 int dataLen = getZrleLength(rect, reader);
26 byte[] bytes = new byte[rect.width * rect.height * renderer.getBytesPerPixel()]; 26 byte[] bytes = new byte[rect.width * rect.height * renderer.getBytesPerPixel()];
27 reader.reset(); 27 reader.reset();
28 if (rfb.hasViewer()) { 28 if (rfb.hasViewer()) {
29 ZRLEDecoder decoder = new ZRLEDecoder(); 29 ZRLEDecoder decoder = new ZRLEDecoder();
30 if (rfb.isRoot()) { 30 if (rfb.isTreeManager()) {
31 rfb.readSendData(dataLen, reader, bytes); 31 rfb.readSendData(dataLen, reader, bytes);
32 decoder.decode1(renderer, rect, bytes, 0); 32 decoder.decode1(renderer, rect, bytes, 0);
33 return; 33 return;
34 } else if (!rfb.getCuiVersion()) { 34 } else if (!rfb.getCuiVersion()) {
35 rfb.readSendData(dataLen, reader, null); 35 rfb.readSendData(dataLen, reader, null);