summaryrefslogtreecommitdiffstats
path: root/rfbserver.c
diff options
context:
space:
mode:
authordscho <dscho>2003-08-08 11:36:21 +0000
committerdscho <dscho>2003-08-08 11:36:21 +0000
commit1fd42ce98cd082309f72467bee73a910c9662fc9 (patch)
treecfd4cc6d9037397a41f1e8579dd54d7c91d49a35 /rfbserver.c
parentf9e179613f072e15cc7433bc96e38005c854b29f (diff)
downloadlibvncserver-1fd42ce98cd082309f72467bee73a910c9662fc9.zip
libvncserver-1fd42ce98cd082309f72467bee73a910c9662fc9.tar.gz
make --without-jpeg, --without-zlib work
Diffstat (limited to 'rfbserver.c')
-rw-r--r--rfbserver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rfbserver.c b/rfbserver.c
index 2644ee7..d841c20 100644
--- a/rfbserver.c
+++ b/rfbserver.c
@@ -1215,8 +1215,10 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion)
fu->type = rfbFramebufferUpdate;
if (nUpdateRegionRects != 0xFFFF) {
if(cl->screen->maxRectsPerUpdate>0
+#ifdef LIBVNCSERVER_HAVE_LIBJPEG
/* Tight encoding counts the rectangles differently */
&& cl->preferredEncoding != rfbEncodingTight
+#endif
&& nUpdateRegionRects>cl->screen->maxRectsPerUpdate) {
sraRegion* newUpdateRegion = sraRgnBBox(updateRegion);
sraRgnDestroy(updateRegion);
OpenPOWER on IntegriCloud