mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-16 00:18:06 +02:00
Use old resource API in backported patch.
1.2 branch doesn't have the resource lookup changes, so we need to use the old APIs.
This commit is contained in:
parent
f993e142d2
commit
895250181b
1 changed files with 2 additions and 6 deletions
|
|
@ -281,14 +281,10 @@ ProcDamageAdd (ClientPtr client)
|
|||
REQUEST(xDamageAddReq);
|
||||
DrawablePtr pDrawable;
|
||||
RegionPtr pRegion;
|
||||
int rc;
|
||||
|
||||
REQUEST_SIZE_MATCH(xDamageAddReq);
|
||||
VERIFY_REGION(pRegion, stuff->region, client, DixWriteAccess);
|
||||
rc = dixLookupDrawable(&pDrawable, stuff->drawable, client, 0,
|
||||
DixReadAccess);
|
||||
if (rc != Success)
|
||||
return rc;
|
||||
VERIFY_REGION(pRegion, stuff->region, client, SecurityWriteAccess);
|
||||
SECURITY_VERIFY_DRAWABLE (pDrawable, stuff->drawable, client, SecurityReadAccess);
|
||||
|
||||
/* The region is relative to the drawable origin, so translate it out to
|
||||
* screen coordinates like damage expects.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue