aboutsummaryrefslogtreecommitdiff
path: root/vnc-encoding-tight.c
diff options
context:
space:
mode:
Diffstat (limited to 'vnc-encoding-tight.c')
-rw-r--r--vnc-encoding-tight.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/vnc-encoding-tight.c b/vnc-encoding-tight.c
index 5b69ff0b52..c1a292bdd2 100644
--- a/vnc-encoding-tight.c
+++ b/vnc-encoding-tight.c
@@ -228,6 +228,10 @@ tight_detect_smooth_image(VncState *vs, int w, int h)
int compression = vs->tight_compression;
int quality = vs->tight_quality;
+ if (!vs->vd->lossy) {
+ return 0;
+ }
+
if (ds_get_bytes_per_pixel(vs->ds) == 1 ||
vs->clientds.pf.bytes_per_pixel == 1 ||
w < VNC_TIGHT_DETECT_MIN_WIDTH || h < VNC_TIGHT_DETECT_MIN_HEIGHT) {