summaryrefslogtreecommitdiffstats
path: root/libvncserver
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2011-07-19 13:40:36 +0200
committerChristian Beier <dontmind@freeshell.org>2011-07-22 17:56:44 +0200
commit353b35e86aa7d51d767f4ff66e1179105bbee205 (patch)
treeea55a5b43219d668cccc7dd04ee8c9f31412d2ed /libvncserver
parent896ca2036c35b89a7f63e1adefe5e3724bf4d40d (diff)
downloadlibtdevnc-353b35e86aa7d51d767f4ff66e1179105bbee205.tar.gz
libtdevnc-353b35e86aa7d51d767f4ff66e1179105bbee205.zip
tightPng: check even for SendGradientRect.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
Diffstat (limited to 'libvncserver')
-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);