diff options
Diffstat (limited to 'common/rfb/JpegCompressor.cxx')
-rw-r--r-- | common/rfb/JpegCompressor.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/rfb/JpegCompressor.cxx b/common/rfb/JpegCompressor.cxx index 0914f850..0de87b4c 100644 --- a/common/rfb/JpegCompressor.cxx +++ b/common/rfb/JpegCompressor.cxx @@ -134,11 +134,11 @@ StandardJpegCompressor::termDestination() void StandardJpegCompressor::setQuality(int level) { - if (level < 0) + if (level < 0) { level = 0; - if (level > 100) + } else if (level > 100) { level = 100; - + } jpeg_set_quality(&m_cinfo, level, true); } |