summaryrefslogtreecommitdiffstats
path: root/test/encodingstest.c
diff options
context:
space:
mode:
authordscho <dscho>2005-03-09 10:19:19 +0000
committerdscho <dscho>2005-03-09 10:19:19 +0000
commit4ff783f5793cee11fe8733f7d118608a25c1b86e (patch)
treeb67fa804636ac664fa4ced2c55e2fbdc0a5378e8 /test/encodingstest.c
parentcef6224e1cff403fd18ab2fe6c88cd1b0363e4e9 (diff)
downloadlibtdevnc-4ff783f5793cee11fe8733f7d118608a25c1b86e.tar.gz
libtdevnc-4ff783f5793cee11fe8733f7d118608a25c1b86e.zip
fix compilation when no libz is available
Diffstat (limited to 'test/encodingstest.c')
-rw-r--r--test/encodingstest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/encodingstest.c b/test/encodingstest.c
index 9a41c62..3868314 100644
--- a/test/encodingstest.c
+++ b/test/encodingstest.c
@@ -150,8 +150,10 @@ static void update(rfbClient* client,int x,int y,int w,int h) {
return;
}
+#ifdef LIBVNCSERVER_HAVE_LIBZ
if(testEncodings[cd->encodingIndex].id==rfbEncodingTight)
maxDelta=5;
+#endif
updateStatistics(cd->encodingIndex,
!doFramebuffersMatch(cd->server,client,maxDelta));