summaryrefslogtreecommitdiffstats
path: root/xorg/server/module/rdpPolyRectangle.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2014-01-24 10:00:52 -0800
committerJay Sorg <jay.sorg@gmail.com>2014-01-24 10:00:52 -0800
commitf39ba98a4ff48a2e6a12cb27027a0b06d139c55a (patch)
tree56706101981867986ea9c4b1f1ee0d78e15588ed /xorg/server/module/rdpPolyRectangle.c
parent320ce8ba47d3d7c344b5de84844d1fa90e346fde (diff)
downloadxrdp-proprietary-f39ba98a4ff48a2e6a12cb27027a0b06d139c55a.tar.gz
xrdp-proprietary-f39ba98a4ff48a2e6a12cb27027a0b06d139c55a.zip
xorg: work on xorg driver
Diffstat (limited to 'xorg/server/module/rdpPolyRectangle.c')
-rw-r--r--xorg/server/module/rdpPolyRectangle.c7
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(&reg, NullBox, 0);
lw = pGC->lineWidth;
if (lw < 1)
@@ -161,4 +161,5 @@ rdpPolyRectangle(DrawablePtr pDrawable, GCPtr pGC, int nrects,
clientCon = clientCon->next;
}
rdpRegionUninit(&reg);
+ rdpRegionUninit(&clip_reg);
}