From a14b8fae2a9e047268b90f35f3d5e90f4ea5ed0d Mon Sep 17 00:00:00 2001 From: Mike Tinglof Date: Mon, 30 Jan 2012 02:26:36 -0500 Subject: [PATCH] comment out per-decompress checksum and logging --- include/rfb.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/rfb.js b/include/rfb.js index 22165c40..64e4b98c 100644 --- a/include/rfb.js +++ b/include/rfb.js @@ -1312,8 +1312,8 @@ encHandlers.TIGHT = function display_tight() { var uncompressed = FBU.zlibs[streamId].uncompress(data, 0); if (uncompressed.status !== 0) throw("Invalid data in zlib stream"); - Util.Warn("Decompressed " + data.length + " to " + uncompressed.data.length + " checksums " + - checksum(data) + ":" + checksum(uncompressed.data)); + //Util.Warn("Decompressed " + data.length + " to " + uncompressed.data.length + " checksums " + + // checksum(data) + ":" + checksum(uncompressed.data)); return uncompressed.data; } @@ -1347,6 +1347,7 @@ encHandlers.TIGHT = function display_tight() { data = decompress(ws.rQshiftBytes(clength[1])); // Convert indexed (palette based) image data to RGB + // TODO: reduce number of calculations inside loop var dest = []; var x, y, b; if (numColors == 2) {