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/rdpPolyArc.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/rdpPolyArc.c')
-rw-r--r-- | xorg/server/module/rdpPolyArc.c | 44 |
1 files changed, 3 insertions, 41 deletions
diff --git a/xorg/server/module/rdpPolyArc.c b/xorg/server/module/rdpPolyArc.c index e0a3d128..9a701dd8 100644 --- a/xorg/server/module/rdpPolyArc.c +++ b/xorg/server/module/rdpPolyArc.c @@ -41,15 +41,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. /******************************************************************************/ static void -rdpPolyArcPre(rdpPtr dev, rdpClientCon *clientCon, - int cd, RegionPtr clip_reg, - DrawablePtr pDrawable, GCPtr pGC, int narcs, xArc *parcs, - RegionPtr reg) -{ -} - -/******************************************************************************/ -static void rdpPolyArcOrg(DrawablePtr pDrawable, GCPtr pGC, int narcs, xArc *parcs) { GC_OP_VARS; @@ -60,29 +51,10 @@ rdpPolyArcOrg(DrawablePtr pDrawable, GCPtr pGC, int narcs, xArc *parcs) } /******************************************************************************/ -static void -rdpPolyArcPost(rdpPtr dev, rdpClientCon *clientCon, - int cd, RegionPtr clip_reg, - DrawablePtr pDrawable, GCPtr pGC, int narcs, xArc *parcs, - RegionPtr reg) -{ - if (cd == XRDP_CD_NODRAW) - { - return; - } - if (!XRDP_DRAWABLE_IS_VISIBLE(dev, pDrawable)) - { - return; - } - rdpClientConAddDirtyScreenReg(dev, clientCon, reg); -} - -/******************************************************************************/ void rdpPolyArc(DrawablePtr pDrawable, GCPtr pGC, int narcs, xArc *parcs) { rdpPtr dev; - rdpClientCon *clientCon; BoxRec box; int index; int cd; @@ -119,22 +91,12 @@ rdpPolyArc(DrawablePtr pDrawable, GCPtr pGC, int narcs, xArc *parcs) { rdpRegionIntersect(®, &clip_reg, ®); } - clientCon = dev->clientConHead; - while (clientCon != NULL) - { - rdpPolyArcPre(dev, clientCon, cd, &clip_reg, pDrawable, pGC, - narcs, parcs, ®); - clientCon = clientCon->next; - } /* do original call */ rdpPolyArcOrg(pDrawable, pGC, narcs, parcs); - clientCon = dev->clientConHead; - while (clientCon != NULL) + if (cd != XRDP_CD_NODRAW) { - rdpPolyArcPost(dev, clientCon, cd, &clip_reg, pDrawable, pGC, - narcs, parcs, ®); - clientCon = clientCon->next; + rdpClientConAddAllReg(dev, ®, pDrawable); } - rdpRegionUninit(®); rdpRegionUninit(&clip_reg); + rdpRegionUninit(®); } |