X11rdp: in composite, use pCompositeClip, not clientClip
This commit is contained in:
parent
4607de10a6
commit
b53cefbea4
@ -1242,8 +1242,6 @@ rdpComposite(CARD8 op, PicturePtr pSrc, PicturePtr pMask, PicturePtr pDst,
|
|||||||
int post_process;
|
int post_process;
|
||||||
int reset_surface;
|
int reset_surface;
|
||||||
int got_id;
|
int got_id;
|
||||||
int lx;
|
|
||||||
int ly;
|
|
||||||
WindowPtr pDstWnd;
|
WindowPtr pDstWnd;
|
||||||
PixmapPtr pDstPixmap;
|
PixmapPtr pDstPixmap;
|
||||||
rdpPixmapRec *pDstPriv;
|
rdpPixmapRec *pDstPriv;
|
||||||
@ -1324,7 +1322,7 @@ rdpComposite(CARD8 op, PicturePtr pSrc, PicturePtr pMask, PicturePtr pDst,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pDst->clientClipType == CT_REGION)
|
if (pDst->pCompositeClip != 0)
|
||||||
{
|
{
|
||||||
box.x1 = p->x + xDst;
|
box.x1 = p->x + xDst;
|
||||||
box.y1 = p->y + yDst;
|
box.y1 = p->y + yDst;
|
||||||
@ -1332,10 +1330,7 @@ rdpComposite(CARD8 op, PicturePtr pSrc, PicturePtr pMask, PicturePtr pDst,
|
|||||||
box.y2 = box.y1 + height;
|
box.y2 = box.y1 + height;
|
||||||
RegionInit(®1, &box, 0);
|
RegionInit(®1, &box, 0);
|
||||||
RegionInit(®2, NullBox, 0);
|
RegionInit(®2, NullBox, 0);
|
||||||
RegionCopy(®2, pDst->clientClip);
|
RegionCopy(®2, pDst->pCompositeClip);
|
||||||
lx = p->x + pDst->clipOrigin.x;
|
|
||||||
ly = p->y + pDst->clipOrigin.y;
|
|
||||||
RegionTranslate(®2, lx, ly);
|
|
||||||
RegionIntersect(®1, ®1, ®2);
|
RegionIntersect(®1, ®1, ®2);
|
||||||
|
|
||||||
if (dirty_type != 0)
|
if (dirty_type != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user