render: Simplify SProcRenderScale
Since ProcRenderScale throws BadImplementation anyway it's pointless to waste time carefully swapping the request. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
parent
a579e6ba77
commit
67dd34fa73
|
@ -2099,20 +2099,7 @@ SProcRenderComposite(ClientPtr client)
|
|||
static int
|
||||
SProcRenderScale(ClientPtr client)
|
||||
{
|
||||
REQUEST(xRenderScaleReq);
|
||||
REQUEST_SIZE_MATCH(xRenderScaleReq);
|
||||
swaps(&stuff->length);
|
||||
swapl(&stuff->src);
|
||||
swapl(&stuff->dst);
|
||||
swapl(&stuff->colorScale);
|
||||
swapl(&stuff->alphaScale);
|
||||
swaps(&stuff->xSrc);
|
||||
swaps(&stuff->ySrc);
|
||||
swaps(&stuff->xDst);
|
||||
swaps(&stuff->yDst);
|
||||
swaps(&stuff->width);
|
||||
swaps(&stuff->height);
|
||||
return (*ProcRenderVector[stuff->renderReqType]) (client);
|
||||
return BadImplementation;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in New Issue