vncHooksScreenPtr vncHooksScreen = vncHooksScreenPrivate(pScreen);
if (vncHooksScreen->ignoreHooks)
return;
+ if (REGION_NIL(reg))
+ return;
vncAddChanged(pScreen->myNum,
(const struct UpdateRect*)REGION_EXTENTS(pScreen, reg),
REGION_NUM_RECTS(reg),
vncHooksScreenPtr vncHooksScreen = vncHooksScreenPrivate(pScreen);
if (vncHooksScreen->ignoreHooks)
return;
+ if (REGION_NIL(dst))
+ return;
vncAddCopied(pScreen->myNum,
(const struct UpdateRect*)REGION_EXTENTS(pScreen, dst),
REGION_NUM_RECTS(dst),
(*pScreen->CopyWindow) (pWin, ptOldOrg, pOldRegion);
- if (REGION_NOTEMPTY(pScreen, &copied))
- add_copied(pScreen, &copied, dx, dy);
+ add_copied(pScreen, &copied, dx, dy);
REGION_UNINIT(pScreen, &copied);
REGION_UNINIT(pScreen, &screen_rgn);
(*ps->Composite)(op, pSrc, pMask, pDst, xSrc, ySrc,
xMask, yMask, xDst, yDst, width, height);
- if (REGION_NOTEMPTY(pScreen, &changed))
- add_changed(pScreen, &changed);
+ add_changed(pScreen, &changed);
REGION_UNINIT(pScreen, &changed);
(*ps->Glyphs)(op, pSrc, pDst, maskFormat, xSrc, ySrc, nlists, lists, glyphs);
- if (REGION_NOTEMPTY(pScreen, changed))
- add_changed(pScreen, changed);
+ add_changed(pScreen, changed);
REGION_DESTROY(pScreen, changed);
(*ps->CompositeRects)(op, pDst, color, nRect, rects);
- if (REGION_NOTEMPTY(pScreen, changed))
- add_changed(pScreen, changed);
+ add_changed(pScreen, changed);
REGION_DESTROY(pScreen, changed);
(*ps->Trapezoids)(op, pSrc, pDst, maskFormat, xSrc, ySrc, ntrap, traps);
- if (REGION_NOTEMPTY(pScreen, &changed))
- add_changed(pScreen, &changed);
+ add_changed(pScreen, &changed);
REGION_UNINIT(pScreen, &changed);
(*ps->Triangles)(op, pSrc, pDst, maskFormat, xSrc, ySrc, ntri, tris);
- if (REGION_NOTEMPTY(pScreen, &changed))
- add_changed(pScreen, &changed);
+ add_changed(pScreen, &changed);
REGION_UNINIT(pScreen, &changed);
(*ps->TriStrip)(op, pSrc, pDst, maskFormat, xSrc, ySrc, npoint, points);
- if (REGION_NOTEMPTY(pScreen, &changed))
- add_changed(pScreen, &changed);
+ add_changed(pScreen, &changed);
REGION_UNINIT(pScreen, &changed);
(*ps->TriFan)(op, pSrc, pDst, maskFormat, xSrc, ySrc, npoint, points);
- if (REGION_NOTEMPTY(pScreen, &changed))
- add_changed(pScreen, &changed);
+ add_changed(pScreen, &changed);
REGION_UNINIT(pScreen, &changed);
ret = (*pGC->ops->CopyArea) (pSrc, pDst, pGC, srcx, srcy, w, h, dstx, dsty);
- if (REGION_NOTEMPTY(pScreen, &dst))
- add_copied(pGC->pScreen, &dst,
- dstx + pDst->x - srcx - pSrc->x,
- dsty + pDst->y - srcy - pSrc->y);
+ add_copied(pGC->pScreen, &dst,
+ dstx + pDst->x - srcx - pSrc->x,
+ dsty + pDst->y - srcy - pSrc->y);
- if (REGION_NOTEMPTY(pScreen, &changed))
- add_changed(pGC->pScreen, &changed);
+ add_changed(pGC->pScreen, &changed);
REGION_UNINIT(pGC->pScreen, &dst);
REGION_UNINIT(pGC->pScreen, &src);