diff options
author | enikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2008-12-25 08:03:49 +0000 |
---|---|---|
committer | enikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2008-12-25 08:03:49 +0000 |
commit | 32b421b0127ef100d44f9085b2cb17ee694bff1d (patch) | |
tree | bada112f76479d03aa35e0e19ab6f2c38678cf1a /java | |
parent | 61540750153624a5703f048080ec45365288325d (diff) | |
download | tigervnc-32b421b0127ef100d44f9085b2cb17ee694bff1d.tar.gz tigervnc-32b421b0127ef100d44f9085b2cb17ee694bff1d.zip |
[Developement] Add copyrect handler code to copyrect decoder.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3463 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java')
-rw-r--r-- | java/src/com/tightvnc/decoder/CopyRectDecoder.java | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/java/src/com/tightvnc/decoder/CopyRectDecoder.java b/java/src/com/tightvnc/decoder/CopyRectDecoder.java index 3fceb631..07a14bdb 100644 --- a/java/src/com/tightvnc/decoder/CopyRectDecoder.java +++ b/java/src/com/tightvnc/decoder/CopyRectDecoder.java @@ -35,8 +35,16 @@ public class CopyRectDecoder extends RawDecoder { dos.writeInt(CopyRectDecoder.EncodingCopyRect); } - // - // TODO: Place copy rect handler code here - // + int copyRectSrcX = rfbis.readU16(); + int copyRectSrcY = rfbis.readU16(); + + // If the session is being recorded: + if (dos != null) { + dos.writeShort(copyRectSrcX); + dos.writeShort(copyRectSrcY); + } + + graphics.copyArea(copyRectSrcX, copyRectSrcY, w, h, + x - copyRectSrcX, y - copyRectSrcY); } } |