mirror of
https://github.com/sheumann/VNCviewGS.git
synced 2024-12-28 00:29:23 +00:00
Properly set up for next rectangle after out-of-bounds CopyRect.
This commit is contained in:
parent
bb65891a4a
commit
46a1657580
@ -62,8 +62,7 @@ void DoCopyRect (void) {
|
|||||||
*/
|
*/
|
||||||
if (!RectInRgn(&srcRect, GetVisHandle())) {
|
if (!RectInRgn(&srcRect, GetVisHandle())) {
|
||||||
SendFBUpdateRequest(FALSE, rectX, rectY, rectWidth, rectHeight);
|
SendFBUpdateRequest(FALSE, rectX, rectY, rectWidth, rectHeight);
|
||||||
displayInProgress = FALSE;
|
goto done;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We can use the window pointer as a LocInfo pointer because it starts
|
/* 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,
|
PPToPort((struct LocInfo *) vncWindow, &srcRect,
|
||||||
rectX - contentOriginPtr->h, rectY - contentOriginPtr->v, modeCopy);
|
rectX - contentOriginPtr->h, rectY - contentOriginPtr->v, modeCopy);
|
||||||
|
|
||||||
|
done:
|
||||||
displayInProgress = FALSE;
|
displayInProgress = FALSE;
|
||||||
|
|
||||||
NextRect(); /* Prepare for next rect */
|
NextRect(); /* Prepare for next rect */
|
||||||
|
Loading…
Reference in New Issue
Block a user