summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>2008-12-25 11:45:52 +0000
committerenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>2008-12-25 11:45:52 +0000
commit7716b7191859b3d6c99b4a3f18cc317c5693a6c2 (patch)
treed91266dab65b674dfe027c8a45691f9f66760353 /java
parentd765356a293564dd5d07b81dad363323d002fa60 (diff)
downloadtigervnc-7716b7191859b3d6c99b4a3f18cc317c5693a6c2.tar.gz
tigervnc-7716b7191859b3d6c99b4a3f18cc317c5693a6c2.zip
[Cleanup, bugfix] Wrong CopyRect recording. Removed unusefull comments.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3475 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java')
-rw-r--r--java/src/com/tightvnc/vncviewer/RfbProto.java29
1 files changed, 1 insertions, 28 deletions
diff --git a/java/src/com/tightvnc/vncviewer/RfbProto.java b/java/src/com/tightvnc/vncviewer/RfbProto.java
index 9e6284f8..d1a94507 100644
--- a/java/src/com/tightvnc/vncviewer/RfbProto.java
+++ b/java/src/com/tightvnc/vncviewer/RfbProto.java
@@ -798,37 +798,10 @@ class RfbProto {
// If this is pseudo encoding or CopyRect that write encoding ID
// in this place. All real encoding ID will be written to record stream
// in decoder classes.
- //
- // TODO: Make CopyRect decoder class.
- //
- if (((updateRectEncoding == EncodingCopyRect)
- || (!isRealDecoderEncoding(updateRectEncoding))) && (rec != null)) {
+ if (((!isRealDecoderEncoding(updateRectEncoding))) && (rec != null)) {
rec.writeIntBE(updateRectEncoding);
}
-
- //
- // Old code
- //
-
- /*if (updateRectEncoding == EncodingZlib && !recordFromBeginning) {
- // Here we cannot write Zlib-encoded rectangles because the
- // decoder won't be able to reproduce zlib stream state.
- if (!zlibWarningShown) {
- System.out.println("Warning: Raw encoding will be used " +
- "instead of Zlib in recorded session.");
- zlibWarningShown = true;
- }
- rec.writeIntBE(EncodingRaw);
- } else {
- rec.writeIntBE(updateRectEncoding);
- if (updateRectEncoding == EncodingTight && !recordFromBeginning &&
- !tightWarningShown) {
- System.out.println("Warning: Re-compressing Tight-encoded " +
- "updates for session recording.");
- tightWarningShown = true;
- }
- }*/
}
if (updateRectEncoding < 0 || updateRectEncoding > MaxNormalEncoding)