diff options
author | Joel Martin <github@martintribe.org> | 2011-07-19 13:40:36 +0200 |
---|---|---|
committer | Christian Beier <dontmind@freeshell.org> | 2011-07-22 17:56:44 +0200 |
commit | 353b35e86aa7d51d767f4ff66e1179105bbee205 (patch) | |
tree | ea55a5b43219d668cccc7dd04ee8c9f31412d2ed | |
parent | 896ca2036c35b89a7f63e1adefe5e3724bf4d40d (diff) | |
download | libvncserver-353b35e86aa7d51d767f4ff66e1179105bbee205.zip libvncserver-353b35e86aa7d51d767f4ff66e1179105bbee205.tar.gz |
tightPng: check even for SendGradientRect.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
-rw-r--r-- | libvncserver/tight.c | 6 |
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); |