From 353b35e86aa7d51d767f4ff66e1179105bbee205 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Tue, 19 Jul 2011 13:40:36 +0200 Subject: [PATCH] tightPng: check even for SendGradientRect. Signed-off-by: Christian Beier --- libvncserver/tight.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libvncserver/tight.c b/libvncserver/tight.c index 83a25e3..474e9e3 100644 --- a/libvncserver/tight.c +++ b/libvncserver/tight.c @@ -958,6 +958,12 @@ SendGradientRect(rfbClientPtr cl, int streamId = 3; int len; +#ifdef LIBVNCSERVER_HAVE_LIBPNG + if (CanSendPngRect(cl, w, h)) { + return SendPngRect(cl, x, y, w, h); + } +#endif + if (cl->format.bitsPerPixel == 8) return SendFullColorRect(cl, x, y, w, h);