Implemented support for changing zlib compression levels from the
Tight encoder.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@334 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfb/tightEncode.h b/rfb/tightEncode.h
index 7479d7e..a6c32ea 100644
--- a/rfb/tightEncode.h
+++ b/rfb/tightEncode.h
@@ -192,6 +192,7 @@
// Maybe use the same static object used in the JPEG coder?
rdr::MemOutStream mem_os;
zos->setUnderlying(&mem_os);
+ zos->setCompressionLevel(zlibLevel);
zos->writeBytes(buf, length);
zos->flush();
os->writeCompactLength(mem_os.length());