@@ -546,13 +546,13 @@ SingleRenderCreatePicture(ClientPtr client, xRenderCreatePictureReq *stuff)
546
546
}
547
547
548
548
static int
549
- SingleRenderChangePicture (ClientPtr client , xRenderChangePictureReq * stuff )
549
+ SingleRenderChangePicture (ClientPtr client , xRenderChangePictureReq * stuff , Picture pictID )
550
550
{
551
551
PicturePtr pPicture ;
552
552
553
553
int len ;
554
554
555
- VERIFY_PICTURE (pPicture , stuff -> picture , client , DixSetAttrAccess );
555
+ VERIFY_PICTURE (pPicture , pictID , client , DixSetAttrAccess );
556
556
557
557
len = client -> req_len - bytes_to_int32 (sizeof (xRenderChangePictureReq ));
558
558
if (Ones (stuff -> mask ) != len )
@@ -2348,16 +2348,16 @@ PanoramiXRenderCreatePicture(ClientPtr client, xRenderCreatePictureReq *stuff)
2348
2348
}
2349
2349
2350
2350
static int
2351
- PanoramiXRenderChangePicture (ClientPtr client , xRenderChangePictureReq * stuff )
2351
+ PanoramiXRenderChangePicture (ClientPtr client , xRenderChangePictureReq * stuff , Picture pictID )
2352
2352
{
2353
2353
PanoramiXRes * pict ;
2354
2354
int result = Success ;
2355
2355
2356
- VERIFY_XIN_PICTURE (pict , stuff -> picture , client , DixWriteAccess );
2356
+ VERIFY_XIN_PICTURE (pict , pictID , client , DixWriteAccess );
2357
2357
2358
2358
XINERAMA_FOR_EACH_SCREEN_BACKWARD ({
2359
2359
stuff -> picture = pict -> info [walkScreenIdx ].id ;
2360
- result = SingleRenderChangePicture (client , stuff );
2360
+ result = SingleRenderChangePicture (client , stuff , pict -> info [ walkScreenIdx ]. id );
2361
2361
if (result != Success )
2362
2362
break ;
2363
2363
});
@@ -3018,10 +3018,10 @@ ProcRenderChangePicture(ClientPtr client)
3018
3018
}
3019
3019
3020
3020
#ifdef XINERAMA
3021
- return (usePanoramiX ? PanoramiXRenderChangePicture (client , stuff )
3022
- : SingleRenderChangePicture (client , stuff ));
3021
+ return (usePanoramiX ? PanoramiXRenderChangePicture (client , stuff , stuff -> picture )
3022
+ : SingleRenderChangePicture (client , stuff , stuff -> picture ));
3023
3023
#else
3024
- return SingleRenderChangePicture (client , stuff );
3024
+ return SingleRenderChangePicture (client , stuff , stuff -> picture );
3025
3025
#endif
3026
3026
}
3027
3027
0 commit comments