summaryrefslogtreecommitdiffstats
path: root/xorg/server/module/rdpPolyFillRect.c
diff options
context:
space:
mode:
authorLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-01-28 18:09:35 -0800
committerLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-01-28 18:09:35 -0800
commitec4791ac405b75f8ee84527c8fe51f8a7d69e9ca (patch)
tree89ae0fe87fe10c556e7c25b3ea8ca431c1575602 /xorg/server/module/rdpPolyFillRect.c
parentc96dd8df2b4398ddbb8e931bdf673d43c4a77f51 (diff)
parentb4b73056fc8c119beb032d20fc763bc40af3efa9 (diff)
downloadxrdp-proprietary-ec4791ac405b75f8ee84527c8fe51f8a7d69e9ca.tar.gz
xrdp-proprietary-ec4791ac405b75f8ee84527c8fe51f8a7d69e9ca.zip
Merge branch 'devel' of github.com:/neutrinolabs/xrdp into devel
Diffstat (limited to 'xorg/server/module/rdpPolyFillRect.c')
-rw-r--r--xorg/server/module/rdpPolyFillRect.c48
1 files changed, 4 insertions, 44 deletions
diff --git a/xorg/server/module/rdpPolyFillRect.c b/xorg/server/module/rdpPolyFillRect.c
index e052d508..f61202b2 100644
--- a/xorg/server/module/rdpPolyFillRect.c
+++ b/xorg/server/module/rdpPolyFillRect.c
@@ -41,16 +41,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
/******************************************************************************/
static void
-rdpPolyFillRectPre(rdpPtr dev, rdpClientCon *clientCon,
- int cd, RegionPtr clip_reg,
- DrawablePtr pDrawable, GCPtr pGC,
- int nrectFill, xRectangle *prectInit,
- RegionPtr reg)
-{
-}
-
-/******************************************************************************/
-static void
rdpPolyFillRectOrg(DrawablePtr pDrawable, GCPtr pGC, int nrectFill,
xRectangle *prectInit)
{
@@ -62,35 +52,11 @@ rdpPolyFillRectOrg(DrawablePtr pDrawable, GCPtr pGC, int nrectFill,
}
/******************************************************************************/
-static void
-rdpPolyFillRectPost(rdpPtr dev, rdpClientCon *clientCon,
- int cd, RegionPtr clip_reg,
- DrawablePtr pDrawable, GCPtr pGC,
- int nrectFill, xRectangle *prectInit,
- 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
rdpPolyFillRect(DrawablePtr pDrawable, GCPtr pGC, int nrectFill,
xRectangle *prectInit)
{
rdpPtr dev;
- rdpClientCon *clientCon;
RegionRec clip_reg;
RegionPtr reg;
int cd;
@@ -104,21 +70,15 @@ rdpPolyFillRect(DrawablePtr pDrawable, GCPtr pGC, int nrectFill,
rdpRegionInit(&clip_reg, NullBox, 0);
cd = rdpDrawGetClip(dev, &clip_reg, pDrawable, pGC);
LLOGLN(10, ("rdpPolyFillRect: cd %d", cd));
- clientCon = dev->clientConHead;
- while (clientCon != NULL)
+ if (cd == XRDP_CD_CLIP)
{
- rdpPolyFillRectPre(dev, clientCon, cd, &clip_reg, pDrawable,
- pGC, nrectFill, prectInit, reg);
- clientCon = clientCon->next;
+ rdpRegionIntersect(reg, &clip_reg, reg);
}
/* do original call */
rdpPolyFillRectOrg(pDrawable, pGC, nrectFill, prectInit);
- clientCon = dev->clientConHead;
- while (clientCon != NULL)
+ if (cd != XRDP_CD_NODRAW)
{
- rdpPolyFillRectPost(dev, clientCon, cd, &clip_reg, pDrawable,
- pGC, nrectFill, prectInit, reg);
- clientCon = clientCon->next;
+ rdpClientConAddAllReg(dev, reg, pDrawable);
}
rdpRegionUninit(&clip_reg);
rdpRegionDestroy(reg);