diff options
author | Jamey Sharp <jamey@minilop.net> | 2010-06-05 20:55:29 -0700 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2010-06-05 22:07:21 -0700 |
commit | a0fe6987b55b5326157b50e169b8d6b9ae26a1ae (patch) | |
tree | 30bd5b4a9fef3d1435059bb2a32d4e8d9916195c /Xext/shape.c | |
parent | 424b593c7872a703d3d0c942b7e8acc0770eb023 (diff) |
Clean up after removal of screen parameters from region macros.
Signed-off-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'Xext/shape.c')
-rw-r--r-- | Xext/shape.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/Xext/shape.c b/Xext/shape.c index fb5b9a76c..33c0cb3e5 100644 --- a/Xext/shape.c +++ b/Xext/shape.c @@ -150,8 +150,6 @@ RegionOperate ( int xoff, int yoff, CreateDftPtr create) { - ScreenPtr pScreen = pWin->drawable.pScreen; - if (srcRgn && (xoff || yoff)) RegionTranslate(srcRgn, xoff, yoff); if (!pWin->parent) @@ -220,7 +218,7 @@ RegionOperate ( } if (srcRgn) RegionDestroy(srcRgn); - (*pScreen->SetShape) (pWin, kind); + (*pWin->drawable.pScreen->SetShape) (pWin, kind); SendShapeNotify (pWin, kind); return Success; } @@ -281,7 +279,6 @@ static int ProcShapeRectangles (ClientPtr client) { WindowPtr pWin; - ScreenPtr pScreen; REQUEST(xShapeRectanglesReq); xRectangle *prects; int nrects, ctype, rc; @@ -314,7 +311,6 @@ ProcShapeRectangles (ClientPtr client) client->errorValue = stuff->ordering; return BadValue; } - pScreen = pWin->drawable.pScreen; nrects = ((stuff->length << 2) - sizeof(xShapeRectanglesReq)); if (nrects & 4) return BadLength; @@ -489,7 +485,6 @@ static int ProcShapeCombine (ClientPtr client) { WindowPtr pSrcWin, pDestWin; - ScreenPtr pScreen; REQUEST(xShapeCombineReq); RegionPtr srcRgn; RegionPtr *destRgn; @@ -519,7 +514,6 @@ ProcShapeCombine (ClientPtr client) client->errorValue = stuff->destKind; return BadValue; } - pScreen = pDestWin->drawable.pScreen; rc = dixLookupWindow(&pSrcWin, stuff->src, client, DixGetAttrAccess); if (rc != Success) @@ -541,7 +535,7 @@ ProcShapeCombine (ClientPtr client) client->errorValue = stuff->srcKind; return BadValue; } - if (pSrcWin->drawable.pScreen != pScreen) + if (pSrcWin->drawable.pScreen != pDestWin->drawable.pScreen) { return BadMatch; } @@ -614,7 +608,6 @@ static int ProcShapeOffset (ClientPtr client) { WindowPtr pWin; - ScreenPtr pScreen; REQUEST(xShapeOffsetReq); RegionPtr srcRgn; int rc; @@ -638,11 +631,10 @@ ProcShapeOffset (ClientPtr client) client->errorValue = stuff->destKind; return BadValue; } - pScreen = pWin->drawable.pScreen; if (srcRgn) { RegionTranslate(srcRgn, stuff->xOff, stuff->yOff); - (*pScreen->SetShape) (pWin, stuff->destKind); + (*pWin->drawable.pScreen->SetShape) (pWin, stuff->destKind); } SendShapeNotify (pWin, (int)stuff->destKind); return Success; |