summaryrefslogtreecommitdiffstats
path: root/xorg/server/module/rdpPolyFillRect.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2014-01-25 11:30:45 -0800
committerJay Sorg <jay.sorg@gmail.com>2014-01-25 11:30:45 -0800
commit03e5b5e62bae5f872874869e62cc096c576fba16 (patch)
tree62aa1ee34ead892e0715f7da1c23ec188b441475 /xorg/server/module/rdpPolyFillRect.c
parentf39ba98a4ff48a2e6a12cb27027a0b06d139c55a (diff)
downloadxrdp-proprietary-03e5b5e62bae5f872874869e62cc096c576fba16.tar.gz
xrdp-proprietary-03e5b5e62bae5f872874869e62cc096c576fba16.zip
xorg: work on xorg driver
Diffstat (limited to 'xorg/server/module/rdpPolyFillRect.c')
-rw-r--r--xorg/server/module/rdpPolyFillRect.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xorg/server/module/rdpPolyFillRect.c b/xorg/server/module/rdpPolyFillRect.c
index e052d508..a3162d31 100644
--- a/xorg/server/module/rdpPolyFillRect.c
+++ b/xorg/server/module/rdpPolyFillRect.c
@@ -77,10 +77,6 @@ rdpPolyFillRectPost(rdpPtr dev, rdpClientCon *clientCon,
{
return;
}
- if (cd == XRDP_CD_CLIP)
- {
- rdpRegionIntersect(reg, clip_reg, reg);
- }
rdpClientConAddDirtyScreenReg(dev, clientCon, reg);
}
@@ -103,6 +99,10 @@ rdpPolyFillRect(DrawablePtr pDrawable, GCPtr pGC, int nrectFill,
rdpRegionTranslate(reg, pDrawable->x, pDrawable->y);
rdpRegionInit(&clip_reg, NullBox, 0);
cd = rdpDrawGetClip(dev, &clip_reg, pDrawable, pGC);
+ if (cd == XRDP_CD_CLIP)
+ {
+ rdpRegionIntersect(reg, &clip_reg, reg);
+ }
LLOGLN(10, ("rdpPolyFillRect: cd %d", cd));
clientCon = dev->clientConHead;
while (clientCon != NULL)