Mercurial > hg > Applications > TightVNC_orginal
changeset 24:1fe39e8ba3e9
remove RICH_CURSOR and CURSOR_POS
author | one |
---|---|
date | Thu, 30 Aug 2012 15:13:34 +0900 |
parents | 6a4312344a5a |
children | 8c15ff5f0f8e |
files | src/main/java/com/glavsoft/rfb/protocol/TreeTask.java |
diffstat | 1 files changed, 12 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/protocol/TreeTask.java Thu Aug 30 14:40:32 2012 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/TreeTask.java Thu Aug 30 15:13:34 2012 +0900 @@ -27,6 +27,18 @@ rfb = _rfb; } + /* + * (non-Javadoc) + * proxy + * no Repaint + * decoder!=0 ZRLE -> ZRLEE + * readSendData(); + * client + * Repaint + * no context.send(); + * if necessary ZRLEE -> ZRLE + * readSendData(); + */ @Override public void framebufferUpdateMessage() throws CommonException { reader.readByte(); // padding @@ -39,29 +51,15 @@ Decoder decoder = decoders.getDecoderByType(rect.getEncodingType()); logger.finest(rect.toString() + (0 == numberOfRectangles ? "\n---" : "")); if (decoder != null) { - /* - decoder.decode(reader, renderer, rect); - repaintController.repaintBitmap(rect); - */ int zrleLength = getZrleLength(rect); reader.reset(); rfb.readSendData(zrleLength, reader); - } else if (rect.getEncodingType() == EncodingType.RICH_CURSOR) { - RichCursorDecoder.getInstance().decode(reader, renderer, rect); - repaintController.repaintCursor(); } else if (rect.getEncodingType() == EncodingType.CURSOR_POS) { - renderer.decodeCursorPosition(rect); - repaintController.repaintCursor(); } else if (rect.getEncodingType() == EncodingType.DESKTOP_SIZE) { fullscreenFbUpdateIncrementalRequest = new FramebufferUpdateRequestMessage(0, 0, rect.width, rect.height, true); - synchronized (renderer) { - renderer = repaintController.createRenderer(reader, rect.width, rect.height, - context.getPixelFormat()); - } context.sendMessage(new FramebufferUpdateRequestMessage(0, 0, rect.width, rect.height, false)); -// repaintController.repaintCursor(); } else throw new CommonException("Unprocessed encoding: " + rect.toString()); } @@ -86,7 +84,6 @@ || rect.getEncodingType() == EncodingType.ZRLEE || rect.getEncodingType() == EncodingType.ZLIB) { zrleLength = reader.readInt32(); - ; } return zrleLength + 20; }