aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/rfb/JpegEncoder.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/rfb/JpegEncoder.cxx b/common/rfb/JpegEncoder.cxx
index 4542da41..71291927 100644
--- a/common/rfb/JpegEncoder.cxx
+++ b/common/rfb/JpegEncoder.cxx
@@ -142,6 +142,7 @@ void JpegEncoder::writeRect(PixelBuffer* pb, const Rect& r)
delete jcomp;
jcomp = new StandardJpegCompressor;
jcomp->setQuality(qualityMap[6]);
+ jcomp->compress(pixels, &fmt, r.width(), r.height(), stride);
}
// Write Tight-encoded header and JPEG data.