summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2016-12-09 14:52:28 -0500
committerAdam Jackson <ajax@redhat.com>2016-12-12 14:09:59 -0500
commite900a00f8dc5a1db63bafddd4ad1cde744975db1 (patch)
tree55929ca47e1bbbc92395c50ff61f1972b2452669 /dix
parent8b335d9068fe4e1f1423a4d86c22b69ffcb819a5 (diff)
dix: Rename (and retype) PixmapPerDepth[1] to defaultStipple
Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'dix')
-rw-r--r--dix/gc.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/dix/gc.c b/dix/gc.c
index 78f3be29d..960e86829 100644
--- a/dix/gc.c
+++ b/dix/gc.c
@@ -504,7 +504,7 @@ NewGCObject(ScreenPtr pScreen, int depth)
pGC->font = defaultFont;
if (pGC->font) /* necessary, because open of default font could fail */
pGC->font->refcnt++;
- pGC->stipple = pGC->pScreen->PixmapPerDepth[0];
+ pGC->stipple = pGC->pScreen->defaultStipple;
if (pGC->stipple)
pGC->stipple->refcnt++;
@@ -874,8 +874,7 @@ CreateDefaultStipple(int screenNum)
w = 16;
h = 16;
(*pScreen->QueryBestSize) (StippleShape, &w, &h, pScreen);
- if (!(pScreen->PixmapPerDepth[0] =
- (*pScreen->CreatePixmap) (pScreen, w, h, 1, 0)))
+ if (!(pScreen->defaultStipple = pScreen->CreatePixmap(pScreen, w, h, 1, 0)))
return FALSE;
/* fill stipple with 1 */
tmpval[0].val = GXcopy;
@@ -883,17 +882,17 @@ CreateDefaultStipple(int screenNum)
tmpval[2].val = FillSolid;
pgcScratch = GetScratchGC(1, pScreen);
if (!pgcScratch) {
- (*pScreen->DestroyPixmap) (pScreen->PixmapPerDepth[0]);
+ (*pScreen->DestroyPixmap) (pScreen->defaultStipple);
return FALSE;
}
(void) ChangeGC(NullClient, pgcScratch,
GCFunction | GCForeground | GCFillStyle, tmpval);
- ValidateGC((DrawablePtr) pScreen->PixmapPerDepth[0], pgcScratch);
+ ValidateGC((DrawablePtr) pScreen->defaultStipple, pgcScratch);
rect.x = 0;
rect.y = 0;
rect.width = w;
rect.height = h;
- (*pgcScratch->ops->PolyFillRect) ((DrawablePtr) pScreen->PixmapPerDepth[0],
+ (*pgcScratch->ops->PolyFillRect) ((DrawablePtr) pScreen->defaultStipple,
pgcScratch, 1, &rect);
FreeScratchGC(pgcScratch);
return TRUE;
@@ -904,7 +903,7 @@ FreeDefaultStipple(int screenNum)
{
ScreenPtr pScreen = screenInfo.screens[screenNum];
- (*pScreen->DestroyPixmap) (pScreen->PixmapPerDepth[0]);
+ (*pScreen->DestroyPixmap) (pScreen->defaultStipple);
}
int