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);