summaryrefslogtreecommitdiffstats
path: root/xorg/server/module/rdpPolyFillArc.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2014-01-28 10:41:32 -0800
committerJay Sorg <jay.sorg@gmail.com>2014-01-28 10:41:32 -0800
commit6beb2364f38f5e53b0acb744ffc8225c9c13e492 (patch)
treef3686148be0a7a912c039a57e1e284c6250e43d3 /xorg/server/module/rdpPolyFillArc.c
parent022c1e31f9f9cee15d7264fb0f520c1a795b73ef (diff)
downloadxrdp-proprietary-6beb2364f38f5e53b0acb744ffc8225c9c13e492.tar.gz
xrdp-proprietary-6beb2364f38f5e53b0acb744ffc8225c9c13e492.zip
xorg: work on xorg driver
Diffstat (limited to 'xorg/server/module/rdpPolyFillArc.c')
-rw-r--r--xorg/server/module/rdpPolyFillArc.c49
1 files changed, 5 insertions, 44 deletions
diff --git a/xorg/server/module/rdpPolyFillArc.c b/xorg/server/module/rdpPolyFillArc.c
index 4bb12746..437929ae 100644
--- a/xorg/server/module/rdpPolyFillArc.c
+++ b/xorg/server/module/rdpPolyFillArc.c
@@ -41,15 +41,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
/******************************************************************************/
static void
-rdpPolyFillArcPre(rdpPtr dev, rdpClientCon *clientCon,
- int cd, RegionPtr clip_reg,
- DrawablePtr pDrawable, GCPtr pGC, int narcs, xArc *parcs,
- RegionPtr reg)
-{
-}
-
-/******************************************************************************/
-static void
rdpPolyFillArcOrg(DrawablePtr pDrawable, GCPtr pGC, int narcs, xArc *parcs)
{
GC_OP_VARS;
@@ -60,33 +51,10 @@ rdpPolyFillArcOrg(DrawablePtr pDrawable, GCPtr pGC, int narcs, xArc *parcs)
}
/******************************************************************************/
-static void
-rdpPolyFillArcPost(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;
- }
- if (cd == XRDP_CD_CLIP)
- {
- rdpRegionIntersect(reg, clip_reg, reg);
- }
- rdpClientConAddDirtyScreenReg(dev, clientCon, reg);
-}
-
-/******************************************************************************/
void
rdpPolyFillArc(DrawablePtr pDrawable, GCPtr pGC, int narcs, xArc *parcs)
{
rdpPtr dev;
- rdpClientCon *clientCon;
BoxRec box;
int index;
int cd;
@@ -119,23 +87,16 @@ rdpPolyFillArc(DrawablePtr pDrawable, GCPtr pGC, int narcs, xArc *parcs)
rdpRegionInit(&clip_reg, NullBox, 0);
cd = rdpDrawGetClip(dev, &clip_reg, pDrawable, pGC);
LLOGLN(10, ("rdpPolyFillArc: cd %d", cd));
- clientCon = dev->clientConHead;
- while (clientCon != NULL)
+ if (cd == XRDP_CD_CLIP)
{
- rdpPolyFillArcPre(dev, clientCon, cd, &clip_reg, pDrawable, pGC,
- narcs, parcs, &reg);
- clientCon = clientCon->next;
+ rdpRegionIntersect(&reg, &clip_reg, &reg);
}
-
/* do original call */
rdpPolyFillArcOrg(pDrawable, pGC, narcs, parcs);
- clientCon = dev->clientConHead;
- while (clientCon != NULL)
+ if (cd != XRDP_CD_NODRAW)
{
- rdpPolyFillArcPost(dev, clientCon, cd, &clip_reg, pDrawable, pGC,
- narcs, parcs, &reg);
- clientCon = clientCon->next;
+ rdpClientConAddAllReg(dev, &reg, pDrawable);
}
- rdpRegionUninit(&reg);
rdpRegionUninit(&clip_reg);
+ rdpRegionUninit(&reg);
}