Commit 353b35e8 authored by Joel Martin's avatar Joel Martin Committed by Christian Beier

tightPng: check even for SendGradientRect.

Signed-off-by: 's avatarChristian Beier <dontmind@freeshell.org>
parent 896ca203
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment