mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-06-17 04:28:34 +02:00
update for CreatePixmap changes
This commit is contained in:
parent
bb4b196f98
commit
f3f704b848
2 changed files with 14 additions and 3 deletions
|
|
@ -234,8 +234,11 @@ xglChangePictureFilter (PicturePtr pPicture,
|
|||
static void
|
||||
xglDestroyDevicePicture (PicturePtr pPicture)
|
||||
{
|
||||
if (pPicture->pSourcePict->source.devPrivate.ptr)
|
||||
if (pPicture->pSourcePict->source.devPrivate.ptr) {
|
||||
xglLeaveServer(pPicture->pDrawable->pScreen);
|
||||
glitz_surface_destroy (pPicture->pSourcePict->source.devPrivate.ptr);
|
||||
xglEnterServer(pPicture->pDrawable->pScreen);
|
||||
}
|
||||
}
|
||||
|
||||
PicturePtr
|
||||
|
|
@ -270,6 +273,8 @@ xglUpdatePicture (PicturePtr pPicture)
|
|||
|
||||
surface = pPixmapPriv->surface;
|
||||
|
||||
xglLeaveServer(pPicture->pDrawable->pScreen);
|
||||
|
||||
if (pPixmapPriv->pictureMask & xglPCFillMask)
|
||||
{
|
||||
glitz_surface_set_fill (surface, fillMode[pPicture->repeatType]);
|
||||
|
|
@ -312,6 +317,8 @@ xglUpdatePicture (PicturePtr pPicture)
|
|||
glitz_surface_set_dither (surface, pPicture->dither);
|
||||
}
|
||||
|
||||
xglEnterServer(pPicture->pDrawable->pScreen);
|
||||
|
||||
pPixmapPriv->pictureMask &= ~XGL_PICTURE_CHANGES (~0);
|
||||
}
|
||||
|
||||
|
|
@ -405,6 +412,8 @@ xglSyncPicture (ScreenPtr pScreen,
|
|||
|
||||
pixel = (CARD32 *) (param + nParam + nStop * 3);
|
||||
|
||||
xglLeaveServer(pScreen);
|
||||
|
||||
buffer = glitz_buffer_create_for_data (pixel);
|
||||
if (!buffer)
|
||||
{
|
||||
|
|
@ -467,6 +476,8 @@ xglSyncPicture (ScreenPtr pScreen,
|
|||
glitz_surface_set_transform (surface, (glitz_transform_t *)
|
||||
pPicture->transform);
|
||||
|
||||
xglEnterServer(pScreen);
|
||||
|
||||
pPicture->pSourcePict->gradient.devPrivate.ptr = surface;
|
||||
pPicture->pSourcePict->gradient.Destroy = xglDestroyDevicePicture;
|
||||
|
||||
|
|
@ -806,7 +817,7 @@ xglCreateSolidAlphaPicture (ScreenPtr pScreen)
|
|||
if (!pGC)
|
||||
return;
|
||||
|
||||
pPixmap = (*pScreen->CreatePixmap) (pScreen, 1, 1, pFormat->depth);
|
||||
pPixmap = (*pScreen->CreatePixmap) (pScreen, 1, 1, pFormat->depth, 0);
|
||||
if (!pPixmap)
|
||||
return;
|
||||
|
||||
|
|
|
|||
|
|
@ -410,7 +410,7 @@ xglXvPutImage (ClientPtr client,
|
|||
|
||||
pPixmap = (*pScreen->CreatePixmap) (pScreen,
|
||||
srcWidth, srcHeight,
|
||||
pDrawable->depth);
|
||||
pDrawable->depth, 0);
|
||||
if (!pPixmap)
|
||||
{
|
||||
xglXvFreePort (pPort);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue