mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-17 08:10:25 +01:00
Remove duplicate function.
This commit is contained in:
parent
d40ddb9421
commit
fcc1e37f36
1 changed files with 0 additions and 44 deletions
|
|
@ -784,48 +784,4 @@ xglPictureClipExtents (PicturePtr pPicture,
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
xglCreateSolidAlphaPicture (ScreenPtr pScreen)
|
||||
{
|
||||
static xRenderColor solidWhite = { 0xffff, 0xffff, 0xffff, 0xffff };
|
||||
static xRectangle one = { 0, 0, 1, 1 };
|
||||
PixmapPtr pPixmap;
|
||||
PictFormatPtr pFormat;
|
||||
int error;
|
||||
Pixel pixel;
|
||||
GCPtr pGC;
|
||||
XID tmpval[2];
|
||||
|
||||
XGL_SCREEN_PRIV (pScreen);
|
||||
|
||||
pFormat = PictureMatchFormat (pScreen, 32, PICT_a8r8g8b8);
|
||||
if (!pFormat)
|
||||
return;
|
||||
|
||||
pGC = GetScratchGC (pFormat->depth, pScreen);
|
||||
if (!pGC)
|
||||
return;
|
||||
|
||||
pPixmap = (*pScreen->CreatePixmap) (pScreen, 1, 1, pFormat->depth);
|
||||
if (!pPixmap)
|
||||
return;
|
||||
|
||||
miRenderColorToPixel (pFormat, &solidWhite, &pixel);
|
||||
|
||||
tmpval[0] = GXcopy;
|
||||
tmpval[1] = pixel;
|
||||
|
||||
ChangeGC (pGC, GCFunction | GCForeground, tmpval);
|
||||
ValidateGC (&pPixmap->drawable, pGC);
|
||||
(*pGC->ops->PolyFillRect) (&pPixmap->drawable, pGC, 1, &one);
|
||||
FreeScratchGC (pGC);
|
||||
|
||||
tmpval[0] = xTrue;
|
||||
pScreenPriv->pSolidAlpha = CreatePicture (0, &pPixmap->drawable, pFormat,
|
||||
CPRepeat, tmpval, 0, &error);
|
||||
(*pScreen->DestroyPixmap) (pPixmap);
|
||||
|
||||
if (pScreenPriv->pSolidAlpha)
|
||||
ValidatePicture (pScreenPriv->pSolidAlpha);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue