Commit 89499350 authored by Mike Gabriel's avatar Mike Gabriel

Xserver: Post-REGION-macros-to-inline-funcs clean-up.

parent 8df1a67b
...@@ -1160,7 +1160,6 @@ XineramaGetImageData( ...@@ -1160,7 +1160,6 @@ XineramaGetImageData(
BoxRec SrcBox, *pbox; BoxRec SrcBox, *pbox;
int x, y, w, h, i, j, nbox, size, sizeNeeded, ScratchPitch, inOut, depth; int x, y, w, h, i, j, nbox, size, sizeNeeded, ScratchPitch, inOut, depth;
DrawablePtr pDraw = pDrawables[0]; DrawablePtr pDraw = pDrawables[0];
ScreenPtr pScreen = pDraw->pScreen;
char *ScratchMem = NULL; char *ScratchMem = NULL;
size = 0; size = 0;
......
...@@ -317,7 +317,6 @@ ProcShapeRectangles (client) ...@@ -317,7 +317,6 @@ ProcShapeRectangles (client)
register ClientPtr client; register ClientPtr client;
{ {
WindowPtr pWin; WindowPtr pWin;
ScreenPtr pScreen;
REQUEST(xShapeRectanglesReq); REQUEST(xShapeRectanglesReq);
xRectangle *prects; xRectangle *prects;
int nrects, ctype; int nrects, ctype;
...@@ -350,7 +349,6 @@ ProcShapeRectangles (client) ...@@ -350,7 +349,6 @@ ProcShapeRectangles (client)
client->errorValue = stuff->ordering; client->errorValue = stuff->ordering;
return BadValue; return BadValue;
} }
pScreen = pWin->drawable.pScreen;
nrects = ((stuff->length << 2) - sizeof(xShapeRectanglesReq)); nrects = ((stuff->length << 2) - sizeof(xShapeRectanglesReq));
if (nrects & 4) if (nrects & 4)
return BadLength; return BadLength;
......
...@@ -2573,11 +2573,9 @@ miBSAllocate(pWin) ...@@ -2573,11 +2573,9 @@ miBSAllocate(pWin)
WindowPtr pWin; WindowPtr pWin;
{ {
register miBSWindowPtr pBackingStore; register miBSWindowPtr pBackingStore;
register ScreenPtr pScreen;
if (pWin->drawable.pScreen->backingStoreSupport == NotUseful) if (pWin->drawable.pScreen->backingStoreSupport == NotUseful)
return; return;
pScreen = pWin->drawable.pScreen;
if (!(pBackingStore = (miBSWindowPtr)pWin->backStorage)) if (!(pBackingStore = (miBSWindowPtr)pWin->backStorage))
{ {
...@@ -2674,9 +2672,6 @@ miBSFree(pWin) ...@@ -2674,9 +2672,6 @@ miBSFree(pWin)
WindowPtr pWin; WindowPtr pWin;
{ {
miBSWindowPtr pBackingStore; miBSWindowPtr pBackingStore;
register ScreenPtr pScreen;
pScreen = pWin->drawable.pScreen;
pBackingStore = (miBSWindowPtr)pWin->backStorage; pBackingStore = (miBSWindowPtr)pWin->backStorage;
if (pBackingStore) if (pBackingStore)
......
...@@ -2029,7 +2029,6 @@ HasUnderlayChildren(WindowPtr pWin) ...@@ -2029,7 +2029,6 @@ HasUnderlayChildren(WindowPtr pWin)
static Bool static Bool
CollectUnderlayChildrenRegions(WindowPtr pWin, RegionPtr pReg) CollectUnderlayChildrenRegions(WindowPtr pWin, RegionPtr pReg)
{ {
ScreenPtr pScreen = pWin->drawable.pScreen;
WindowPtr pChild; WindowPtr pChild;
miOverlayTreePtr pTree; miOverlayTreePtr pTree;
Bool hasUnderlay; Bool hasUnderlay;
......
...@@ -275,14 +275,12 @@ miChangeSaveUnder(pWin, first) ...@@ -275,14 +275,12 @@ miChangeSaveUnder(pWin, first)
* Used when pWin was restacked */ * Used when pWin was restacked */
{ {
RegionRec rgn; /* Area obscured by saveUnder windows */ RegionRec rgn; /* Area obscured by saveUnder windows */
register ScreenPtr pScreen;
Bool res; Bool res;
if (!deltaSaveUndersViewable && !numSaveUndersViewable) if (!deltaSaveUndersViewable && !numSaveUndersViewable)
return FALSE; return FALSE;
numSaveUndersViewable += deltaSaveUndersViewable; numSaveUndersViewable += deltaSaveUndersViewable;
deltaSaveUndersViewable = 0; deltaSaveUndersViewable = 0;
pScreen = pWin->drawable.pScreen;
RegionNull(&rgn); RegionNull(&rgn);
res = miCheckSubSaveUnder (pWin->parent, res = miCheckSubSaveUnder (pWin->parent,
pWin->saveUnder ? first : pWin->nextSib, pWin->saveUnder ? first : pWin->nextSib,
...@@ -368,9 +366,6 @@ miMarkOverlappedWindows(pWin, pFirst, ppLayerWin) ...@@ -368,9 +366,6 @@ miMarkOverlappedWindows(pWin, pFirst, ppLayerWin)
register WindowPtr pChild, pLast; register WindowPtr pChild, pLast;
Bool anyMarked = FALSE; Bool anyMarked = FALSE;
MarkWindowProcPtr MarkWindow = pWin->drawable.pScreen->MarkWindow; MarkWindowProcPtr MarkWindow = pWin->drawable.pScreen->MarkWindow;
ScreenPtr pScreen;
pScreen = pWin->drawable.pScreen;
/* single layered systems are easy */ /* single layered systems are easy */
if (ppLayerWin) *ppLayerWin = pWin; if (ppLayerWin) *ppLayerWin = pWin;
...@@ -453,11 +448,8 @@ miHandleValidateExposures(pWin) ...@@ -453,11 +448,8 @@ miHandleValidateExposures(pWin)
{ {
register WindowPtr pChild; register WindowPtr pChild;
register ValidatePtr val; register ValidatePtr val;
ScreenPtr pScreen;
WindowExposuresProcPtr WindowExposures; WindowExposuresProcPtr WindowExposures;
pScreen = pWin->drawable.pScreen;
pChild = pWin; pChild = pWin;
WindowExposures = pChild->drawable.pScreen->WindowExposures; WindowExposures = pChild->drawable.pScreen->WindowExposures;
while (1) while (1)
...@@ -581,12 +573,10 @@ miRecomputeExposures ( ...@@ -581,12 +573,10 @@ miRecomputeExposures (
register WindowPtr pWin, register WindowPtr pWin,
void * value) /* must conform to VisitWindowProcPtr */ void * value) /* must conform to VisitWindowProcPtr */
{ {
register ScreenPtr pScreen;
RegionPtr pValid = (RegionPtr)value; RegionPtr pValid = (RegionPtr)value;
if (pWin->valdata) if (pWin->valdata)
{ {
pScreen = pWin->drawable.pScreen;
/* /*
* compute exposed regions of this window * compute exposed regions of this window
*/ */
...@@ -1186,11 +1176,8 @@ miMarkUnrealizedWindow(pChild, pWin, fromConfigure) ...@@ -1186,11 +1176,8 @@ miMarkUnrealizedWindow(pChild, pWin, fromConfigure)
void void
miSegregateChildren(WindowPtr pWin, RegionPtr pReg, int depth) miSegregateChildren(WindowPtr pWin, RegionPtr pReg, int depth)
{ {
ScreenPtr pScreen;
WindowPtr pChild; WindowPtr pChild;
pScreen = pWin->drawable.pScreen;
for (pChild = pWin->firstChild; pChild; pChild = pChild->nextSib) for (pChild = pWin->firstChild; pChild; pChild = pChild->nextSib)
{ {
if (pChild->drawable.depth == depth) if (pChild->drawable.depth == depth)
......
...@@ -129,7 +129,6 @@ miValidatePicture (PicturePtr pPicture, ...@@ -129,7 +129,6 @@ miValidatePicture (PicturePtr pPicture,
Mask mask) Mask mask)
{ {
DrawablePtr pDrawable = pPicture->pDrawable; DrawablePtr pDrawable = pPicture->pDrawable;
ScreenPtr pScreen = pDrawable->pScreen;
if ((mask & (CPClipXOrigin|CPClipYOrigin|CPClipMask|CPSubwindowMode)) || if ((mask & (CPClipXOrigin|CPClipYOrigin|CPClipMask|CPSubwindowMode)) ||
(pDrawable->serialNumber != (pPicture->serialNumber & DRAWABLE_SERIAL_BITS))) (pDrawable->serialNumber != (pPicture->serialNumber & DRAWABLE_SERIAL_BITS)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment