diff options
author | enikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2008-12-24 04:12:34 +0000 |
---|---|---|
committer | enikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2008-12-24 04:12:34 +0000 |
commit | 5276d7968c72a9d812f2735aa9a581e1d2bd7600 (patch) | |
tree | b40e024b1e275b929f87a303129828c6046d816e /java | |
parent | 1cc0194565a73194bacea13f52dfed3b3cb57dcc (diff) | |
download | tigervnc-5276d7968c72a9d812f2735aa9a581e1d2bd7600.tar.gz tigervnc-5276d7968c72a9d812f2735aa9a581e1d2bd7600.zip |
[Refactoring] Write record data to data output interface instead of record interface in raw decoder class.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3450 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java')
-rw-r--r-- | java/src/com/tightvnc/decoder/RawDecoder.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/java/src/com/tightvnc/decoder/RawDecoder.java b/java/src/com/tightvnc/decoder/RawDecoder.java index c16989cb..79cf8896 100644 --- a/java/src/com/tightvnc/decoder/RawDecoder.java +++ b/java/src/com/tightvnc/decoder/RawDecoder.java @@ -90,10 +90,10 @@ public class RawDecoder { rfbis.readFully(pixels8, dy * framebufferWidth + x, w); } // - // Save decoded data to RecordInterface + // Save decoded data to record output stream // - if (rec.canWrite()) { - rec.write(pixels8, dy * framebufferWidth + x, w); + if (dos != null) { + dos.write(pixels8, dy * framebufferWidth + x, w); } } } else { @@ -102,10 +102,10 @@ public class RawDecoder { for (int dy = y; dy < y + h; dy++) { rfbis.readFully(buf); // - // Save decoded data to RecordInterface + // Save decoded data to record output stream // - if (rec.canWrite()) { - rec.write(buf); + if (dos != null) { + dos.write(buf); } offset = dy * framebufferWidth + x; if (pixels24 != null) { |