XQuartz: Fix the new ProcAppleDRIDestroyPixmap code REQUEST_SIZE_MATCH.

It had a copy and paste mistake that I didn't notice. :/
It was using the CreatePixmapReq.

Also add a missing B16 to the end of the length for the DestroyPixmapReq struct.

Now the AppleDRIDestroyPixmap request seem to work.
(cherry picked from commit 295fe25bd8fa2d141291a9d9b6ef7b75fcccb4dd)
This commit is contained in:
George Staplin 2009-02-18 21:43:19 -07:00 committed by Jeremy Huddleston
parent 225853d51d
commit 372977354c
2 changed files with 2 additions and 2 deletions

View File

@ -331,7 +331,7 @@ ProcAppleDRIDestroyPixmap(ClientPtr client)
DrawablePtr pDrawable; DrawablePtr pDrawable;
int rc; int rc;
REQUEST(xAppleDRIDestroyPixmapReq); REQUEST(xAppleDRIDestroyPixmapReq);
REQUEST_SIZE_MATCH(xAppleDRICreatePixmapReq); REQUEST_SIZE_MATCH(xAppleDRIDestroyPixmapReq);
rc = dixLookupDrawable(&pDrawable, stuff->drawable, client, 0, rc = dixLookupDrawable(&pDrawable, stuff->drawable, client, 0,
DixReadAccess); DixReadAccess);

View File

@ -226,7 +226,7 @@ typedef struct {
typedef struct { typedef struct {
CARD8 reqType; /*1*/ CARD8 reqType; /*1*/
CARD8 driReqType; /*2*/ CARD8 driReqType; /*2*/
CARD16 length; /*4*/ CARD16 length B16; /*4*/
CARD32 drawable B32; /*8*/ CARD32 drawable B32; /*8*/
} xAppleDRIDestroyPixmapReq; } xAppleDRIDestroyPixmapReq;