From 46a165758042a5339d39da5e9d5ab6ada247ba9a Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Sat, 28 May 2016 18:33:31 -0500 Subject: [PATCH] Properly set up for next rectangle after out-of-bounds CopyRect. --- copyrect.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copyrect.cc b/copyrect.cc index b89fddb..60cd065 100644 --- a/copyrect.cc +++ b/copyrect.cc @@ -62,8 +62,7 @@ void DoCopyRect (void) { */ if (!RectInRgn(&srcRect, GetVisHandle())) { SendFBUpdateRequest(FALSE, rectX, rectY, rectWidth, rectHeight); - displayInProgress = FALSE; - return; + goto done; } /* We can use the window pointer as a LocInfo pointer because it starts @@ -72,6 +71,7 @@ void DoCopyRect (void) { PPToPort((struct LocInfo *) vncWindow, &srcRect, rectX - contentOriginPtr->h, rectY - contentOriginPtr->v, modeCopy); +done: displayInProgress = FALSE; NextRect(); /* Prepare for next rect */