mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
render: XineramaRenderSetPictureClipRectangle(): don't patch request buffer anymore
No need for patching up the request buffer anymore - just pass in the correct value directly. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
99590abe52
commit
f609b18367
@@ -551,12 +551,13 @@ SingleRenderChangePicture(ClientPtr client, xRenderChangePictureReq *stuff, Pict
|
||||
|
||||
static int
|
||||
SingleRenderSetPictureClipRectangles(ClientPtr client,
|
||||
xRenderSetPictureClipRectanglesReq *stuff)
|
||||
xRenderSetPictureClipRectanglesReq *stuff,
|
||||
Picture pictID)
|
||||
{
|
||||
PicturePtr pPicture;
|
||||
int nr;
|
||||
|
||||
VERIFY_PICTURE(pPicture, stuff->picture, client, DixSetAttrAccess);
|
||||
VERIFY_PICTURE(pPicture, pictID, client, DixSetAttrAccess);
|
||||
if (!pPicture->pDrawable)
|
||||
return RenderErrBase + BadPicture;
|
||||
|
||||
@@ -2018,16 +2019,16 @@ PanoramiXRenderChangePicture(ClientPtr client, xRenderChangePictureReq *stuff, P
|
||||
|
||||
static int
|
||||
PanoramiXRenderSetPictureClipRectangles(ClientPtr client,
|
||||
xRenderSetPictureClipRectanglesReq *stuff)
|
||||
xRenderSetPictureClipRectanglesReq *stuff,
|
||||
Picture pictID)
|
||||
{
|
||||
int result = Success;
|
||||
PanoramiXRes *pict;
|
||||
|
||||
VERIFY_XIN_PICTURE(pict, stuff->picture, client, DixWriteAccess);
|
||||
VERIFY_XIN_PICTURE(pict, pictID, client, DixWriteAccess);
|
||||
|
||||
XINERAMA_FOR_EACH_SCREEN_BACKWARD({
|
||||
stuff->picture = pict->info[walkScreenIdx].id;
|
||||
result = SingleRenderSetPictureClipRectangles(client, stuff);
|
||||
result = SingleRenderSetPictureClipRectangles(client, stuff, pict->info[walkScreenIdx].id);
|
||||
if (result != Success)
|
||||
break;
|
||||
});
|
||||
@@ -2655,10 +2656,10 @@ ProcRenderSetPictureClipRectangles(ClientPtr client)
|
||||
}
|
||||
|
||||
#ifdef XINERAMA
|
||||
return (usePanoramiX ? PanoramiXRenderSetPictureClipRectangles(client, stuff)
|
||||
: SingleRenderSetPictureClipRectangles(client, stuff));
|
||||
return (usePanoramiX ? PanoramiXRenderSetPictureClipRectangles(client, stuff, stuff->picture)
|
||||
: SingleRenderSetPictureClipRectangles(client, stuff, stuff->picture));
|
||||
#else
|
||||
return SingleRenderSetPictureClipRectangles(client, stuff);
|
||||
return SingleRenderSetPictureClipRectangles(client, stuff, stuff->picture);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user