summaryrefslogtreecommitdiffstats
path: root/libvncserver/tight.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvncserver/tight.c')
-rw-r--r--libvncserver/tight.c6
1 files changed, 6 insertions, 0 deletions
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);