diff options
Diffstat (limited to 'xorg/server/module/rdpPolyRectangle.c')
| -rw-r--r-- | xorg/server/module/rdpPolyRectangle.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xorg/server/module/rdpPolyRectangle.c b/xorg/server/module/rdpPolyRectangle.c index b7cfe982..304a8122 100644 --- a/xorg/server/module/rdpPolyRectangle.c +++ b/xorg/server/module/rdpPolyRectangle.c @@ -67,7 +67,7 @@ rdpPolyRectanglePost(rdpPtr dev, rdpClientCon *clientCon, DrawablePtr pDrawable, GCPtr pGC, int nrects, xRectangle *rects, RegionPtr reg) { - if (cd == 0) + if (cd == XRDP_CD_NODRAW) { return; } @@ -75,7 +75,7 @@ rdpPolyRectanglePost(rdpPtr dev, rdpClientCon *clientCon, { return; } - if (cd == 2) + if (cd == XRDP_CD_CLIP) { rdpRegionIntersect(reg, clip_reg, reg); } @@ -100,7 +100,7 @@ rdpPolyRectangle(DrawablePtr pDrawable, GCPtr pGC, int nrects, LLOGLN(10, ("rdpPolyRectangle:")); dev = rdpGetDevFromScreen(pGC->pScreen); - + dev->counts.rdpPolyRectangleCallCount++; rdpRegionInit(®, NullBox, 0); lw = pGC->lineWidth; if (lw < 1) @@ -161,4 +161,5 @@ rdpPolyRectangle(DrawablePtr pDrawable, GCPtr pGC, int nrects, clientCon = clientCon->next; } rdpRegionUninit(®); + rdpRegionUninit(&clip_reg); } |
