Commit 2eded94f authored by steven_carr's avatar steven_carr

UltraVNC with scaling, will send rectangles with a zero W or H

We need to process the rectangle (especially if it a type that contains
subrectangles or any kind of compression).   UltraVNC should be fixed to
prevent these useless rectangles from being sent.
parent 5865f0c4
...@@ -867,10 +867,15 @@ HandleRFBServerMessage(rfbClient* client) ...@@ -867,10 +867,15 @@ HandleRFBServerMessage(rfbClient* client)
return FALSE; return FALSE;
} }
if (rect.r.h * rect.r.w == 0) { /* UltraVNC with scaling, will send rectangles with a zero W or H
rfbClientLog("Zero size rect - ignoring\n"); *
if ((rect.encoding != rfbEncodingTight) &&
(rect.r.h * rect.r.w == 0))
{
rfbClientLog("Zero size rect - ignoring (encoding=%d (0x%08x) %dx, %dy, %dw, %dh)\n", rect.encoding, rect.encoding, rect.r.x, rect.r.y, rect.r.w, rect.r.h);
continue; continue;
} }
*/
/* If RichCursor encoding is used, we should prevent collisions /* If RichCursor encoding is used, we should prevent collisions
between framebuffer updates and cursor drawing operations. */ between framebuffer updates and cursor drawing operations. */
......
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