diff options
| author | Jay Sorg <jay.sorg@gmail.com> | 2014-01-28 10:41:32 -0800 |
|---|---|---|
| committer | Jay Sorg <jay.sorg@gmail.com> | 2014-01-28 10:41:32 -0800 |
| commit | 6beb2364f38f5e53b0acb744ffc8225c9c13e492 (patch) | |
| tree | f3686148be0a7a912c039a57e1e284c6250e43d3 /xorg/server/module/rdpPolyPoint.c | |
| parent | 022c1e31f9f9cee15d7264fb0f520c1a795b73ef (diff) | |
| download | xrdp-proprietary-6beb2364f38f5e53b0acb744ffc8225c9c13e492.tar.gz xrdp-proprietary-6beb2364f38f5e53b0acb744ffc8225c9c13e492.zip | |
xorg: work on xorg driver
Diffstat (limited to 'xorg/server/module/rdpPolyPoint.c')
| -rw-r--r-- | xorg/server/module/rdpPolyPoint.c | 52 |
1 files changed, 5 insertions, 47 deletions
diff --git a/xorg/server/module/rdpPolyPoint.c b/xorg/server/module/rdpPolyPoint.c index df151b84..5dfac5ef 100644 --- a/xorg/server/module/rdpPolyPoint.c +++ b/xorg/server/module/rdpPolyPoint.c @@ -41,15 +41,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. /******************************************************************************/ static void -rdpPolyPointPre(rdpPtr dev, rdpClientCon *clientCon, - int cd, RegionPtr clip_reg, - DrawablePtr pDrawable, GCPtr pGC, int mode, - int npt, DDXPointPtr in_pts, RegionPtr reg) -{ -} - -/******************************************************************************/ -static void rdpPolyPointOrg(DrawablePtr pDrawable, GCPtr pGC, int mode, int npt, DDXPointPtr in_pts) { @@ -61,45 +52,18 @@ rdpPolyPointOrg(DrawablePtr pDrawable, GCPtr pGC, int mode, } /******************************************************************************/ -static void -rdpPolyPointPost(rdpPtr dev, rdpClientCon *clientCon, - int cd, RegionPtr clip_reg, - DrawablePtr pDrawable, GCPtr pGC, int mode, - int npt, DDXPointPtr in_pts, RegionPtr reg) -{ - RegionRec lreg; - - if (cd == XRDP_CD_NODRAW) - { - return; - } - if (!XRDP_DRAWABLE_IS_VISIBLE(dev, pDrawable)) - { - return; - } - rdpRegionInit(&lreg, NullBox, 0); - if (cd == XRDP_CD_CLIP) - { - rdpRegionIntersect(&lreg, clip_reg, reg); - } - rdpClientConAddDirtyScreenReg(dev, clientCon, &lreg); - rdpRegionUninit(&lreg); -} - -/******************************************************************************/ void rdpPolyPoint(DrawablePtr pDrawable, GCPtr pGC, int mode, int npt, DDXPointPtr in_pts) { rdpPtr dev; - rdpClientCon *clientCon; RegionRec clip_reg; RegionRec reg; int cd; int index; BoxRec box; - LLOGLN(0, ("rdpPolyPoint:")); + LLOGLN(10, ("rdpPolyPoint:")); dev = rdpGetDevFromScreen(pGC->pScreen); dev->counts.rdpPolyPointCallCount++; rdpRegionInit(®, NullBox, 0); @@ -114,21 +78,15 @@ rdpPolyPoint(DrawablePtr pDrawable, GCPtr pGC, int mode, rdpRegionInit(&clip_reg, NullBox, 0); cd = rdpDrawGetClip(dev, &clip_reg, pDrawable, pGC); LLOGLN(10, ("rdpPolyPoint: cd %d", cd)); - clientCon = dev->clientConHead; - while (clientCon != NULL) + if (cd == XRDP_CD_CLIP) { - rdpPolyPointPre(dev, clientCon, cd, &clip_reg, pDrawable, - pGC, mode, npt, in_pts, ®); - clientCon = clientCon->next; + rdpRegionIntersect(®, &clip_reg, ®); } /* do original call */ rdpPolyPointOrg(pDrawable, pGC, mode, npt, in_pts); - clientCon = dev->clientConHead; - while (clientCon != NULL) + if (cd != XRDP_CD_NODRAW) { - rdpPolyPointPost(dev, clientCon, cd, &clip_reg, pDrawable, - pGC, mode, npt, in_pts, ®); - clientCon = clientCon->next; + rdpClientConAddAllReg(dev, ®, pDrawable); } rdpRegionUninit(&clip_reg); rdpRegionUninit(®); |
