mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-01 22:03:09 +00:00
dix: always NULL pGC->tile.pixmap in Create{Scratch}GC.
This commit is contained in:
parent
6fd8fe9cb9
commit
1cb5afdf1e
2 changed files with 3 additions and 3 deletions
5
dix/gc.c
5
dix/gc.c
|
|
@ -602,6 +602,8 @@ CreateGC(DrawablePtr pDrawable, BITS32 mask, XID *pval, int *pStatus,
|
|||
pGC->fillStyle = FillSolid;
|
||||
pGC->fillRule = EvenOddRule;
|
||||
pGC->arcMode = ArcPieSlice;
|
||||
pGC->tile.pixel = 0;
|
||||
pGC->tile.pixmap = NullPixmap;
|
||||
if (mask & GCForeground)
|
||||
{
|
||||
/*
|
||||
|
|
@ -609,12 +611,10 @@ CreateGC(DrawablePtr pDrawable, BITS32 mask, XID *pval, int *pStatus,
|
|||
* and snags the Foreground value to create a pseudo default-tile
|
||||
*/
|
||||
pGC->tileIsPixel = FALSE;
|
||||
pGC->tile.pixmap = NullPixmap;
|
||||
}
|
||||
else
|
||||
{
|
||||
pGC->tileIsPixel = TRUE;
|
||||
pGC->tile.pixel = 0;
|
||||
}
|
||||
|
||||
pGC->patOrg.x = 0;
|
||||
|
|
@ -932,6 +932,7 @@ CreateScratchGC(ScreenPtr pScreen, unsigned depth)
|
|||
pGC->font->refcnt++;
|
||||
pGC->tileIsPixel = TRUE;
|
||||
pGC->tile.pixel = 0;
|
||||
pGC->tile.pixmap = NullPixmap;
|
||||
pGC->stipple = NullPixmap;
|
||||
pGC->patOrg.x = 0;
|
||||
pGC->patOrg.y = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue