mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
render: PanoramiXRenderComposite(): don't patch request buffer anymore
No need for patching up the original request buffer anymore - just pass in a modified copy. Trying to keep this patch small for easier review. Some cleanups coming with a follow-up. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
32f0c01c14
commit
d9e0c0451d
@@ -2097,17 +2097,18 @@ PanoramiXRenderFreePicture(ClientPtr client)
|
||||
}
|
||||
|
||||
static int
|
||||
PanoramiXRenderComposite(ClientPtr client, xRenderCompositeReq *stuff)
|
||||
PanoramiXRenderComposite(ClientPtr client, xRenderCompositeReq *orig_req)
|
||||
{
|
||||
PanoramiXRes *src, *msk, *dst;
|
||||
int result = Success;
|
||||
xRenderCompositeReq orig;
|
||||
xRenderCompositeReq orig = *orig_req;
|
||||
|
||||
VERIFY_XIN_PICTURE(src, stuff->src, client, DixReadAccess);
|
||||
VERIFY_XIN_ALPHA(msk, stuff->mask, client, DixReadAccess);
|
||||
VERIFY_XIN_PICTURE(dst, stuff->dst, client, DixWriteAccess);
|
||||
VERIFY_XIN_PICTURE(src, orig.src, client, DixReadAccess);
|
||||
VERIFY_XIN_ALPHA(msk, orig.mask, client, DixReadAccess);
|
||||
VERIFY_XIN_PICTURE(dst, orig.dst, client, DixWriteAccess);
|
||||
|
||||
orig = *stuff;
|
||||
xRenderCompositeReq sub_req = orig;
|
||||
xRenderCompositeReq *stuff = &sub_req;
|
||||
|
||||
XINERAMA_FOR_EACH_SCREEN_FORWARD({
|
||||
stuff->src = src->info[walkScreenIdx].id;
|
||||
|
||||
Reference in New Issue
Block a user