[PATCH] render: Simplify SProcRenderScale

Alan Coopersmith alan.coopersmith at oracle.com
Wed Jun 10 11:15:45 PDT 2015


On 06/10/15 10:20 AM, Adam Jackson wrote:
> Since ProcRenderScale throws BadImplementation anyway it's pointless to
> waste time carefully swapping the request.
>
> Signed-off-by: Adam Jackson <ajax at redhat.com>
> ---
>   render/render.c | 15 +--------------
>   1 file changed, 1 insertion(+), 14 deletions(-)
>
> diff --git a/render/render.c b/render/render.c
> index 88d8a26..b777991 100644
> --- a/render/render.c
> +++ b/render/render.c
> @@ -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
>

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list