tightPng: check even for SendGradientRect.

Signed-off-by: Christian Beier <dontmind@freeshell.org>
pull/1/head
Joel Martin 13 years ago committed by Christian Beier
parent 896ca2036c
commit 353b35e86a

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

Loading…
Cancel
Save